Skip to content

Commit 18ef9d5

Browse files
authored
fix(ci): skip Trivy SARIF uploads for PR and Dependabot runs (#56)
1 parent 3045613 commit 18ef9d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎.github/workflows/docker.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
template: "@/contrib/sarif.tpl"
6868
output: "trivy-results.sarif"
6969
- name: Upload Trivy scan results to GitHub Security tab
70+
if: env.publish == 'true'
7071
uses: github/codeql-action/upload-sarif@v4.39.0
7172
with:
7273
sarif_file: "trivy-results.sarif"

0 commit comments

Comments
 (0)