Skip to content

Commit 8b7a4d0

Browse files
chore: use pmd 2.0.0
1 parent 4bbf0d3 commit 8b7a4d0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,20 @@ jobs:
3636
echo "$sha $fileName" > sha256.txt
3737
sha256sum -c sha256.txt
3838
39-
- name: Run PMD
40-
uses: pmd/pmd-github-action@main
39+
- uses: pmd/pmd-github-action@v2
40+
name: Lint
41+
id: pmd
4142
if: ${{ matrix.os == 'ubuntu-latest' }}
4243
with:
4344
rulesets: 'plugin/src/main/resources/pmd-ruleset.xml'
4445
sourcePath: 'plugin/src/main/java'
4546
analyzeModifiedFilesOnly: true
4647

48+
- name: Upload SARIF file
49+
uses: github/codeql-action/upload-sarif@v3
50+
with:
51+
sarif_file: pmd-report.sarif
52+
4753
- name: Fail build if violations found
4854
if: steps.pmd.outputs.violations != 0
4955
run: exit 1

0 commit comments

Comments
 (0)