Skip to content

Commit 3b0c69f

Browse files
Copilotbeevelop
andauthored
fix(ci): skip Trivy SARIF uploads for PR and Dependabot runs
Co-authored-by: beevelop <6891349+beevelop@users.noreply.github.com>
1 parent 4e968cc commit 3b0c69f

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.38.3
7172
with:
7273
sarif_file: "trivy-results.sarif"

0 commit comments

Comments
 (0)