File tree 3 files changed +16
-8
lines changed
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -212,13 +212,13 @@ jobs:
212
212
with :
213
213
input : trivy-results/result.sarif
214
214
output : trivy-results/result.sarif
215
- severity : high
215
+ severity : critical
216
216
- uses : itxaka/sarif-filter@v1
217
217
if : startsWith(github.ref, 'refs/tags/')
218
218
with :
219
219
input : grype-results/result.sarif
220
220
output : grype-results/result.sarif
221
- severity : high
221
+ severity : critical
222
222
- name : Release
223
223
uses : softprops/action-gh-release@01570a1f39cb168c169c802c3bceb9e93fb10974 # v2.1.0
224
224
if : startsWith(github.ref, 'refs/tags/')
Original file line number Diff line number Diff line change @@ -148,26 +148,26 @@ jobs:
148
148
with :
149
149
input : trivy-results/result.sarif
150
150
output : trivy-results/result.sarif
151
- severity : high
151
+ severity : critical
152
152
- uses : itxaka/sarif-filter@v1
153
153
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
154
154
with :
155
155
input : grype-results/result.sarif
156
156
output : grype-results/result.sarif
157
- severity : high
157
+ severity : critical
158
158
- name : Check scan results
159
159
if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
160
160
continue-on-error : true
161
161
run : |
162
162
result=$(cat grype-results/result.sarif | jq '.runs[0].results | length')
163
163
if (( result > 0 )); then
164
- echo "Critical or high severity issues found in Grype scan"
164
+ echo "Critical severity issues found in Grype scan"
165
165
exit 1
166
166
fi
167
167
168
168
result=$(cat trivy-results/result.sarif | jq '.runs[0].results | length')
169
169
if (( result > 0 )); then
170
- echo "Critical or high severity issues found in Trivy scan"
170
+ echo "Critical severity issues found in Trivy scan"
171
171
exit 1
172
172
fi
173
173
- name : Upload Trivy scan results to GitHub Security tab
Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ jobs:
188
188
with :
189
189
input : trivy.sarif
190
190
output : trivy.sarif
191
- severity : high
191
+ severity : critical
192
192
- uses : itxaka/sarif-filter@v1
193
193
if : startsWith(github.ref, 'refs/tags/')
194
194
with :
195
195
input : grype.sarif
196
196
output : grype.sarif
197
- severity : high
197
+ severity : critical
198
198
- name : Upload Trivy scan results to GitHub Security tab
199
199
uses : github/codeql-action/upload-sarif@v3
200
200
if : startsWith(github.ref, 'refs/tags/')
@@ -207,3 +207,11 @@ jobs:
207
207
with :
208
208
sarif_file : ' grype.sarif'
209
209
category : ${{ matrix.flavor }}-${{ inputs.flavor_release }}-${{ inputs.variant }}-arm64-${{ inputs.model }}
210
+ - uses : actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
211
+ if : startsWith(github.ref, 'refs/tags/')
212
+ with :
213
+ name : ${{ matrix.flavor }}-${{ inputs.flavor_release }}-${{ inputs.variant }}-arm64-${{ inputs.model }}-scan-results
214
+ path : |
215
+ trivy.sarif
216
+ grype.sarif
217
+ if-no-files-found : error
You can’t perform that action at this time.
0 commit comments