You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-27Lines changed: 27 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,7 @@ jobs:
87
87
88
88
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
89
89
- name: Checkout repository
90
-
uses: actions/checkout@v2
90
+
uses: actions/checkout@v3
91
91
92
92
# Generates the jtest.data.json input file.
93
93
- name: Create input for Jtest
@@ -96,25 +96,25 @@ jobs:
96
96
# Runs code analysis with Jtest.
97
97
- name: Run Jtest
98
98
id: jtest
99
-
uses: parasoft/run-jtest-action@1.0.0
99
+
uses: parasoft/run-jtest-action@2.0.0
100
100
with:
101
101
#Uses the jtest.data.json generated with the Gradle command in the previous step
102
102
input: build/jtest/jtest.data.json
103
103
104
104
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
105
105
- name: Upload results (SARIF)
106
-
if: always()
107
-
uses: github/codeql-action/upload-sarif@v2
108
-
with:
109
-
sarif_file: reports/report.sarif # reports is a default location for reports directory
106
+
if: always()
107
+
uses: github/codeql-action/upload-sarif@v2
108
+
with:
109
+
sarif_file: reports/report.sarif # reports is a default location for reports directory
110
110
111
111
# Uploads an archive that includes all report files (.xml, .html, .sarif).
112
112
- name: Archive reports
113
-
if: always()
114
-
uses: actions/upload-artifact@v2
115
-
with:
116
-
name: Static analysis reports
117
-
path: reports/*.*
113
+
if: always()
114
+
uses: actions/upload-artifact@v3
115
+
with:
116
+
name: Static analysis reports
117
+
path: reports/*.*
118
118
119
119
```
120
120
@@ -148,7 +148,7 @@ jobs:
148
148
149
149
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
150
150
- name: Checkout repository
151
-
uses: actions/checkout@v2
151
+
uses: actions/checkout@v3
152
152
153
153
# Generates the jtest.data.json input file.
154
154
- name: Create input for Jtest
@@ -157,25 +157,25 @@ jobs:
157
157
# Runs code analysis with Jtest
158
158
- name: Run Jtest
159
159
id: jtest
160
-
uses: parasoft/run-jtest-action@1.0.0
160
+
uses: parasoft/run-jtest-action@2.0.0
161
161
with:
162
162
#Uses the jtest.data.json generated with the Maven command in the previous step
163
-
input: build/jtest/jtest.data.json
163
+
input: target/jtest/jtest.data.json
164
164
165
165
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
166
166
- name: Upload results (SARIF)
167
-
if: always()
168
-
uses: github/codeql-action/upload-sarif@v2
169
-
with:
170
-
sarif_file: reports/report.sarif # reports is a default location for reports directory
167
+
if: always()
168
+
uses: github/codeql-action/upload-sarif@v2
169
+
with:
170
+
sarif_file: reports/report.sarif # reports is a default location for reports directory
171
171
172
172
# Uploads an archive that includes all report files (.xml, .html, .sarif).
173
173
- name: Archive reports
174
-
if: always()
175
-
uses: actions/upload-artifact@v2
176
-
with:
177
-
name: Static analysis reports
178
-
path: reports/*.*
174
+
if: always()
175
+
uses: actions/upload-artifact@v3
176
+
with:
177
+
name: Static analysis reports
178
+
path: reports/*.*
179
179
180
180
```
181
181
@@ -192,7 +192,7 @@ If `jtestcli` executable is not on `PATH`, you can configure the path to the ins
192
192
193
193
```yaml
194
194
- name: Run Jtest
195
-
uses: parasoft/run-jtest-action@1.0.0
195
+
uses: parasoft/run-jtest-action@2.0.0
196
196
with:
197
197
installDir: '/opt/parasoft/jtest'
198
198
```
@@ -202,7 +202,7 @@ You can configure the `input` parameter to provide the path to a JSON file that
202
202
203
203
```yaml
204
204
- name: Run Jtest
205
-
uses: parasoft/run-jtest-action@1.0.0
205
+
uses: parasoft/run-jtest-action@2.0.0
206
206
with:
207
207
input: 'build/demo.data.json'
208
208
```
@@ -212,7 +212,7 @@ Code analysis with Jtest is performed by using a test configuration - a set of s
212
212
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:
213
213
```yaml
214
214
- name: Run Jtest
215
-
uses: parasoft/run-jtest-action@1.0.0
215
+
uses: parasoft/run-jtest-action@2.0.0
216
216
with:
217
217
testConfig: 'builtin://Recommended Rules'
218
218
```
@@ -221,7 +221,7 @@ To specify a test configuration directly in your workflow, add the `testConfig`
221
221
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:
0 commit comments