File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow uses actions that are not certified by GitHub.
2
+ # They are provided by a third-party and are governed by
3
+ # separate terms of service, privacy policy, and support
4
+ # documentation.
5
+
6
+ name : pmd
7
+
8
+ on :
9
+ push :
10
+ branches : [ "master" ]
11
+ pull_request :
12
+ branches : [ "master" ]
13
+ schedule :
14
+ - cron : ' 35 20 * * 5'
15
+
16
+ permissions :
17
+ contents : read
18
+
19
+ jobs :
20
+ pmd-code-scan :
21
+ permissions :
22
+ contents : read # for actions/checkout to fetch code
23
+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
24
+ actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
25
+ runs-on : ubuntu-latest
26
+ steps :
27
+ - uses : actions/checkout@v3
28
+ - name : Set up JDK 11
29
+ uses : actions/setup-java@v3
30
+ with :
31
+ java-version : ' 11'
32
+ distribution : ' temurin'
33
+ - name : Run PMD
34
+ id : pmd
35
+ uses : pmd/pmd-github-action@967a81f8b657c87f7c3e96b62301cb1a48efef29
36
+ with :
37
+ rulesets : ' rulesets/java/quickstart.xml'
38
+ sourcePath : ' src/main/java'
39
+ analyzeModifiedFilesOnly : false
40
+ - name : Upload SARIF file
41
+ uses : github/codeql-action/upload-sarif@v2
42
+ with :
43
+ sarif_file : pmd-report.sarif
You can’t perform that action at this time.
0 commit comments