Skip to content

Commit bc46dc1

Browse files
committed
update action versions
1 parent ae9f869 commit bc46dc1

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- run: |
1616
npm install
1717
- run: |

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
test:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515
- run: |
1616
npm install
1717
- run: |

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
9393
- name: Checkout repository
94-
uses: actions/checkout@v3
94+
uses: actions/checkout@v4
9595
9696
# Generates the jtest.data.json input file.
9797
- name: Create input for Jtest
@@ -100,7 +100,7 @@ jobs:
100100
# Runs code analysis with Jtest.
101101
- name: Run Jtest
102102
id: jtest
103-
uses: parasoft/run-jtest-action@2.0.0
103+
uses: parasoft/run-jtest-action@2.0.2
104104
with:
105105
#Uses the jtest.data.json generated with the Gradle command in the previous step
106106
input: build/jtest/jtest.data.json
@@ -115,7 +115,7 @@ jobs:
115115
# Uploads an archive that includes all report files (.xml, .html, .sarif).
116116
- name: Archive reports
117117
if: always()
118-
uses: actions/upload-artifact@v3
118+
uses: actions/upload-artifact@v4
119119
with:
120120
name: Static analysis reports
121121
path: reports/*.*
@@ -156,7 +156,7 @@ jobs:
156156
157157
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
158158
- name: Checkout repository
159-
uses: actions/checkout@v3
159+
uses: actions/checkout@v4
160160
161161
# Generates the jtest.data.json input file.
162162
- name: Create input for Jtest
@@ -165,7 +165,7 @@ jobs:
165165
# Runs code analysis with Jtest
166166
- name: Run Jtest
167167
id: jtest
168-
uses: parasoft/run-jtest-action@2.0.0
168+
uses: parasoft/run-jtest-action@2.0.2
169169
with:
170170
#Uses the jtest.data.json generated with the Maven command in the previous step
171171
input: target/jtest/jtest.data.json
@@ -180,7 +180,7 @@ jobs:
180180
# Uploads an archive that includes all report files (.xml, .html, .sarif).
181181
- name: Archive reports
182182
if: always()
183-
uses: actions/upload-artifact@v3
183+
uses: actions/upload-artifact@v4
184184
with:
185185
name: Static analysis reports
186186
path: reports/*.*
@@ -200,7 +200,7 @@ If `jtestcli` executable is not on `PATH`, you can configure the path to the ins
200200

201201
```yaml
202202
- name: Run Jtest
203-
uses: parasoft/run-jtest-action@2.0.0
203+
uses: parasoft/run-jtest-action@2.0.2
204204
with:
205205
installDir: '/opt/parasoft/jtest'
206206
```
@@ -210,7 +210,7 @@ You can configure the `input` parameter to provide the path to a JSON file that
210210

211211
```yaml
212212
- name: Run Jtest
213-
uses: parasoft/run-jtest-action@2.0.0
213+
uses: parasoft/run-jtest-action@2.0.2
214214
with:
215215
input: 'build/demo.data.json'
216216
```
@@ -220,7 +220,7 @@ Code analysis with Jtest is performed by using a test configuration - a set of s
220220
To specify a test configuration directly in your workflow, add the `testConfig` parameter to the `Run Jtest` action and specify the URL of the test configuration you want to use:
221221
```yaml
222222
- name: Run Jtest
223-
uses: parasoft/run-jtest-action@2.0.0
223+
uses: parasoft/run-jtest-action@2.0.2
224224
with:
225225
testConfig: 'builtin://Recommended Rules'
226226
```
@@ -229,7 +229,7 @@ To specify a test configuration directly in your workflow, add the `testConfig`
229229
Generating reports in the SARIF format is available in Jtest since version 2021.1. If you are using an earlier Jtest version, you need to customize the `Run Jtest` action to enable generating SARIF reports:
230230
```yaml
231231
- name: Run Jtest
232-
uses: parasoft/run-jtest-action@2.0.0
232+
uses: parasoft/run-jtest-action@2.0.2
233233
with:
234234
reportFormat: xml,html,custom
235235
additionalParams: '-property report.custom.extension=sarif -property report.custom.xsl.file=${PARASOFT_SARIF_XSL}'

samples/run-jtest-with-gradle-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ jobs:
2929
# Runs code analysis with Jtest.
3030
- name: Run Jtest
3131
id: jtest
32-
uses: parasoft/run-jtest-action@2.0.0
32+
uses: parasoft/run-jtest-action@2.0.2
3333
with:
3434
#Uses the jtest.data.json generated with the Gradle command in the previous step
3535
input: build/jtest/jtest.data.json
3636

3737
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
3838
- name: Upload results (SARIF)
3939
if: always()
40-
uses: github/codeql-action/upload-sarif@v2
40+
uses: github/codeql-action/upload-sarif@v3
4141
with:
4242
sarif_file: reports/report.sarif # reports is a default location for reports directory
4343

4444
# Uploads an archive that includes all report files (.xml, .html, .sarif).
4545
- name: Archive reports
4646
if: always()
47-
uses: actions/upload-artifact@v3
47+
uses: actions/upload-artifact@v4
4848
with:
4949
name: Static analysis reports
5050
path: reports/*.*

samples/run-jtest-with-maven-template.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,22 +29,22 @@ jobs:
2929
# Runs code analysis with Jtest
3030
- name: Run Jtest
3131
id: jtest
32-
uses: parasoft/run-jtest-action@2.0.0
32+
uses: parasoft/run-jtest-action@2.0.2
3333
with:
3434
#Uses the jtest.data.json generated with the Maven command in the previous step
3535
input: target/jtest/jtest.data.json
3636

3737
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
3838
- name: Upload results (SARIF)
3939
if: always()
40-
uses: github/codeql-action/upload-sarif@v2
40+
uses: github/codeql-action/upload-sarif@v3
4141
with:
4242
sarif_file: reports/report.sarif # reports is a default location for reports directory
4343

4444
# Uploads an archive that includes all report files (.xml, .html, .sarif).
4545
- name: Archive reports
4646
if: always()
47-
uses: actions/upload-artifact@v3
47+
uses: actions/upload-artifact@v4
4848
with:
4949
name: Static analysis reports
5050
path: reports/*.*

0 commit comments

Comments
 (0)