Skip to content

Commit 5de45aa

Browse files
samuelho-devclaude
andcommitted
fix: make Trivy SARIF upload non-blocking
Add continue-on-error to upload-sarif step to prevent build failures due to GitHub Security permissions issues in called workflows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1584265 commit 5de45aa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/docker-build-push.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ jobs:
172172

173173
- name: Upload Trivy scan results to GitHub Security
174174
if: inputs.scan
175+
continue-on-error: true # Don't fail build if upload fails (permissions issue)
175176
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
176177
with:
177178
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)