Skip to content

Commit 8f9167c

Browse files
Dibran Mulderclaude
andcommitted
ci: harden anchore image scan and pin scan actions
Bump anchore/scan-action to v7.4.0 and fail the build on fixable critical vulnerabilities. Pin both scan and upload-sarif actions to commit SHAs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent c57bc84 commit 8f9167c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/delivery.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,17 @@ jobs:
5454
cache-to: type=gha,mode=max
5555

5656
- name: Scan Image
57-
uses: anchore/scan-action@v3
57+
uses: anchore/scan-action@e1165082ffb1fe366ebaf02d8526e7c4989ea9d2 # v7.4.0
5858
id: scan
5959
with:
6060
image: local/${{ github.repository }}:scan
6161
only-fixed: true
62-
fail-build: false
62+
fail-build: true
63+
severity-cutoff: critical
6364
output-format: sarif
6465

6566
- name: Upload Anchore scan SARIF report
66-
uses: github/codeql-action/upload-sarif@v4
67+
uses: github/codeql-action/upload-sarif@7211b7c8077ea37d8641b6271f6a365a22a5fbfa # v4.36.0
6768
if: ${{ !cancelled() }}
6869
with:
6970
sarif_file: ${{ steps.scan.outputs.sarif }}

0 commit comments

Comments
 (0)