Skip to content

Commit ae433dd

Browse files
committed
update action number and fix maven target dir
1 parent cffdd87 commit ae433dd

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
8888
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
8989
- name: Checkout repository
90-
uses: actions/checkout@v2
90+
uses: actions/checkout@v3
9191
9292
# Generates the jtest.data.json input file.
9393
- name: Create input for Jtest
@@ -96,25 +96,25 @@ jobs:
9696
# Runs code analysis with Jtest.
9797
- name: Run Jtest
9898
id: jtest
99-
uses: parasoft/run-jtest-action@1.0.0
99+
uses: parasoft/run-jtest-action@2.0.0
100100
with:
101101
#Uses the jtest.data.json generated with the Gradle command in the previous step
102102
input: build/jtest/jtest.data.json
103103
104104
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
105105
- 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
110110
111111
# Uploads an archive that includes all report files (.xml, .html, .sarif).
112112
- 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/*.*
118118
119119
```
120120

@@ -148,7 +148,7 @@ jobs:
148148
149149
# Checks out your repository under $GITHUB_WORKSPACE, so that your job can access it.
150150
- name: Checkout repository
151-
uses: actions/checkout@v2
151+
uses: actions/checkout@v3
152152
153153
# Generates the jtest.data.json input file.
154154
- name: Create input for Jtest
@@ -157,25 +157,25 @@ jobs:
157157
# Runs code analysis with Jtest
158158
- name: Run Jtest
159159
id: jtest
160-
uses: parasoft/run-jtest-action@1.0.0
160+
uses: parasoft/run-jtest-action@2.0.0
161161
with:
162162
#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
164164
165165
# Uploads analysis results in the SARIF format, so that they are displayed as GitHub code scanning alerts.
166166
- 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
171171
172172
# Uploads an archive that includes all report files (.xml, .html, .sarif).
173173
- 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/*.*
179179
180180
```
181181

@@ -192,7 +192,7 @@ If `jtestcli` executable is not on `PATH`, you can configure the path to the ins
192192

193193
```yaml
194194
- name: Run Jtest
195-
uses: parasoft/run-jtest-action@1.0.0
195+
uses: parasoft/run-jtest-action@2.0.0
196196
with:
197197
installDir: '/opt/parasoft/jtest'
198198
```
@@ -202,7 +202,7 @@ You can configure the `input` parameter to provide the path to a JSON file that
202202

203203
```yaml
204204
- name: Run Jtest
205-
uses: parasoft/run-jtest-action@1.0.0
205+
uses: parasoft/run-jtest-action@2.0.0
206206
with:
207207
input: 'build/demo.data.json'
208208
```
@@ -212,7 +212,7 @@ Code analysis with Jtest is performed by using a test configuration - a set of s
212212
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:
213213
```yaml
214214
- name: Run Jtest
215-
uses: parasoft/run-jtest-action@1.0.0
215+
uses: parasoft/run-jtest-action@2.0.0
216216
with:
217217
testConfig: 'builtin://Recommended Rules'
218218
```
@@ -221,7 +221,7 @@ To specify a test configuration directly in your workflow, add the `testConfig`
221221
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:
222222
```yaml
223223
- name: Run Jtest
224-
uses: parasoft/run-jtest-action@1.0.0
224+
uses: parasoft/run-jtest-action@2.0.0
225225
with:
226226
reportFormat: xml,html,custom
227227
additionalParams: '-property report.custom.extension=sarif -property report.custom.xsl.file=${PARASOFT_SARIF_XSL}'

0 commit comments

Comments
 (0)