Skip to content

Commit 53d6c2a

Browse files
committed
chore
1 parent 13721b5 commit 53d6c2a

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,23 @@ jobs:
151151
sbom: true
152152
secrets: |
153153
github_token=${{ secrets.GITHUB_TOKEN }}
154+
155+
- name: Analyze for critical and high CVEs
156+
id: docker-scout-cves
157+
if: ${{ github.event_name == 'pull_request' }}
158+
uses: docker/scout-action@v1
159+
with:
160+
command: cves
161+
image: ${{ steps.meta.outputs.tags }}
162+
sarif-file: sarif.output.json
163+
summary: true
164+
165+
- name: Upload SARIF result
166+
id: upload-sarif
167+
if: ${{ github.event_name == 'pull_request' }}
168+
uses: github/codeql-action/upload-sarif@v2
169+
with:
170+
sarif_file: sarif.output.json
154171

155172
# Sign the resulting Docker image digest except on PRs.
156173
# This will only write to the public Rekor transparency log when the Docker

0 commit comments

Comments
 (0)