Skip to content

Commit 134250a

Browse files
committed
Update samples in README.md
1 parent 367cc14 commit 134250a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,31 @@ The input `rulesets` is mandatory.
1919

2020
```yaml
2121
steps:
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
3737
steps:
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
5757
steps:
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

Comments
 (0)