You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/02/21 08:05:08 UTC
[camel] branch main updated: (chores) ci: add PMD code scanning for contributions
This is an automated email from the ASF dual-hosted git repository.
orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 310c9d0 (chores) ci: add PMD code scanning for contributions
310c9d0 is described below
commit 310c9d0f312e5457069dfdb7cc873f2160b46bc9
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Mon Feb 14 17:21:33 2022 +0100
(chores) ci: add PMD code scanning for contributions
---
.github/workflows/pmd-analysis.yml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/pmd-analysis.yml b/.github/workflows/pmd-analysis.yml
new file mode 100644
index 0000000..0493c7d
--- /dev/null
+++ b/.github/workflows/pmd-analysis.yml
@@ -0,0 +1,26 @@
+name: pmd
+
+on:
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ pmd-code-scan:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'temurin'
+ - name: Run PMD
+ id: pmd
+ uses: pmd/pmd-github-action@967a81f8b657c87f7c3e96b62301cb1a48efef29
+ with:
+ rulesets: 'rulesets/java/quickstart.xml'
+ analyzeModifiedFilesOnly: true
+ - name: Upload SARIF file
+ uses: github/codeql-action/upload-sarif@v1
+ with:
+ sarif_file: pmd-report.sarif