Skip to content

Commit 943b7d0

Browse files
committed
fix: guard SARIF upload with file existence check + continue-on-error
1 parent 3a58760 commit 943b7d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ jobs:
163163

164164
- name: Upload Trivy scan results to GitHub Security tab
165165
uses: github/codeql-action/upload-sarif@b0c4fd77f6c559021d78430ec4d0d169ae74a4eb # v3
166+
continue-on-error: true
166167
with:
167168
sarif_file: "trivy-results.sarif"
168-
if: always()
169+
if: always() && hashFiles('trivy-results.sarif') != ''

0 commit comments

Comments
 (0)