@@ -122,6 +122,25 @@ jobs:
122122 provenance : mode=max
123123 sbom : true
124124
125+
126+ - name : Analyze for critical and high CVEs
127+ id : docker-scout-cves
128+ uses : docker/scout-action@v1
129+ with :
130+ command : cves
131+ image : ${{ steps.meta.outputs.tags }}
132+ only-severities : critical,high
133+ sarif-file : sarif.output.json
134+ summary : true
135+ exit-code : true
136+
137+ - name : Upload SARIF result
138+ id : upload-sarif
139+ if : ${{ github.event_name != 'pull_request' }}
140+ uses : github/codeql-action/upload-sarif@v3
141+ with :
142+ sarif_file : sarif.output.json
143+
125144 # - name: Check if ":latest" tag exists
126145 # if: github.event_name == 'pull_request'
127146 # id: check-latest-exists
@@ -158,24 +177,6 @@ jobs:
158177 secrets : |
159178 github_token=${{ secrets.GITHUB_TOKEN }}
160179
161- - name : Analyze for critical and high CVEs
162- id : docker-scout-cves
163- if : ${{ github.event_name != 'pull_request' }}
164- uses : docker/scout-action@v1
165- with :
166- command : cves
167- image : ${{ steps.meta.outputs.tags }}
168- only-severities : critical,high
169- sarif-file : sarif.output.json
170- summary : true
171- exit-code : true
172-
173- - name : Upload SARIF result
174- id : upload-sarif
175- # if: ${{ github.event_name != 'pull_request' }}
176- uses : github/codeql-action/upload-sarif@v3
177- with :
178- sarif_file : sarif.output.json
179180
180181 # Sign the resulting Docker image digest except on PRs.
181182 # This will only write to the public Rekor transparency log when the Docker
0 commit comments