@@ -19,31 +19,31 @@ The input `rulesets` is mandatory.
1919
2020``` yaml 
2121steps :
22-   - uses : actions/checkout@v3  
23-   - uses : actions/setup-java@v3  
22+   - uses : actions/checkout@v4  
23+   - uses : actions/setup-java@v4  
2424    with :
2525      distribution : ' temurin' 
2626      java-version : ' 11' 
27-   - uses : pmd/pmd-github-action@v1  
27+   - uses : pmd/pmd-github-action@v2  
2828    with :
2929      rulesets : ' ruleset.xml' 
3030` ` ` 
3131
3232### Extended 
3333
34- Use a specific PMD version (6.40 .0) and fail the build based on the number of violations: 
34+ Use a specific PMD version (6.55 .0) and fail the build based on the number of violations: 
3535
3636` ` ` yaml 
3737steps :
38-   - uses : actions/checkout@v3  
39-   - uses : actions/setup-java@v3  
38+   - uses : actions/checkout@v4  
39+   - uses : actions/setup-java@v4  
4040    with :
4141      distribution : ' temurin' 
4242      java-version : ' 11' 
43-   - uses : pmd/pmd-github-action@v1  
43+   - uses : pmd/pmd-github-action@v2  
4444    id : pmd 
4545    with :
46-       version : ' 6.40 .0' 
46+       version : ' 6.55 .0' 
4747      sourcePath : ' src/main/java' 
4848      rulesets : ' rulesets/java/quickstart.xml,ruleset.xml' 
4949  - name : Fail build if there are violations 
@@ -55,17 +55,17 @@ Create Code scanning alerts by uploading a SARIF file to GitHub:
5555
5656` ` ` yaml 
5757steps :
58-   - uses : actions/checkout@v3  
59-   - uses : actions/setup-java@v3  
58+   - uses : actions/checkout@v4  
59+   - uses : actions/setup-java@v4  
6060    with :
6161      distribution : ' temurin' 
6262      java-version : ' 11' 
63-   - uses : pmd/pmd-github-action@v1  
63+   - uses : pmd/pmd-github-action@v2  
6464    with :
6565      rulesets : ' ruleset.xml' 
6666      analyzeModifiedFilesOnly : false 
6767  - name : Upload SARIF file 
68-     uses : github/codeql-action/upload-sarif@v1  
68+     uses : github/codeql-action/upload-sarif@v3  
6969    with :
7070      sarif_file : pmd-report.sarif 
7171` ` ` 
0 commit comments