We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbf0d3 commit 8b7a4d0Copy full SHA for 8b7a4d0
.github/workflows/ci.yml
@@ -36,14 +36,20 @@ jobs:
36
echo "$sha $fileName" > sha256.txt
37
sha256sum -c sha256.txt
38
39
- - name: Run PMD
40
- uses: pmd/pmd-github-action@main
+ - uses: pmd/pmd-github-action@v2
+ name: Lint
41
+ id: pmd
42
if: ${{ matrix.os == 'ubuntu-latest' }}
43
with:
44
rulesets: 'plugin/src/main/resources/pmd-ruleset.xml'
45
sourcePath: 'plugin/src/main/java'
46
analyzeModifiedFilesOnly: true
47
48
+ - name: Upload SARIF file
49
+ uses: github/codeql-action/upload-sarif@v3
50
+ with:
51
+ sarif_file: pmd-report.sarif
52
+
53
- name: Fail build if violations found
54
if: steps.pmd.outputs.violations != 0
55
run: exit 1
0 commit comments