File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 6969 sbom : true
7070
7171 - name : Run Trivy vulnerability scanner
72+ id : trivy
7273 uses : aquasecurity/trivy-action@master
7374 with :
7475 image-ref : ghcr.io/${{ github.repository_owner }}/flowsint-app:${{ github.ref_name }}
7879
7980 - name : Upload Trivy scan results
8081 uses : github/codeql-action/upload-sarif@v3
81- if : always()
82+ if : always() && steps.trivy.outcome == 'success'
8283 with :
8384 sarif_file : " trivy-frontend.sarif"
8485
@@ -142,6 +143,7 @@ jobs:
142143 sbom : true
143144
144145 - name : Run Trivy vulnerability scanner
146+ id : trivy
145147 uses : aquasecurity/trivy-action@master
146148 with :
147149 image-ref : ghcr.io/${{ github.repository_owner }}/flowsint-api:${{ github.ref_name }}
@@ -151,7 +153,7 @@ jobs:
151153
152154 - name : Upload Trivy scan results
153155 uses : github/codeql-action/upload-sarif@v3
154- if : always()
156+ if : always() && steps.trivy.outcome == 'success'
155157 with :
156158 sarif_file : " trivy-backend.sarif"
157159
You can’t perform that action at this time.
0 commit comments