Skip to content

Commit

Permalink
Add PMD report to GH Code Scanning
Browse files Browse the repository at this point in the history
  • Loading branch information
bdemers committed Dec 21, 2024
1 parent 69556f8 commit c005b09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,14 @@ jobs:
languages: ${{ matrix.language }}

- name: Maven Build
run: ./mvnw verify
run: ./mvnw verify pmd:aggregate-pmd -Pci

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

- name: Upload PMD Analysis
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: pmd-report.sarif
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<configuration>
<format>net.sourceforge.pmd.renderers.SarifRenderer</format>
<rulesets>
<ruleset>${session.executionRootDirectory}/src/pmd/ruleset.xml</ruleset>
</rulesets>
Expand Down

0 comments on commit c005b09

Please sign in to comment.