File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -134,18 +134,19 @@ jobs:
134
134
output-file : sbom.spdx.json
135
135
136
136
# -------------------------------------------------------------
137
- # 6️⃣ Trivy CVE scan → SARIF (fails on CRITICAL/HIGH)
137
+ # 6️⃣ Trivy CVE scan → SARIF (fails on CRITICAL/HIGH)
138
138
# -------------------------------------------------------------
139
139
- name : 🛡️ Trivy vulnerability scan
140
+ id : trivy
141
+ continue-on-error : true # let the job continue even if Trivy exits 1
140
142
uses : aquasecurity/trivy-action@7b7aa264d83dc58691451798b4d117d53d21edfe
141
143
with :
142
144
image-ref : ${{ env.IMAGE_NAME }}:latest
143
- format : template
144
- template : ' @/contrib/sarif.tpl'
145
+ format : sarif # Trivy can emit SARIF directly
145
146
output : trivy-results.sarif
146
147
severity : CRITICAL,HIGH
147
- exit-code : 1
148
-
148
+ exit-code : 1 # non-zero when CRITICAL/HIGH vulns found
149
+
149
150
- name : ☁️ Upload Trivy SARIF
150
151
if : always()
151
152
uses : github/codeql-action/upload-sarif@v3
You can’t perform that action at this time.
0 commit comments