Skip to content

Commit d6e6462

Browse files
committed
Only upload Trivy reports to GitHub on master branch to avoid duplicates
1 parent ef39565 commit d6e6462

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
output: 'trivy-results.sarif'
4646

4747
- name: Upload Trivy scan results to GitHub Security tab
48+
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
4849
uses: github/codeql-action/upload-sarif@v1
4950
with:
5051
sarif_file: 'trivy-results.sarif'

0 commit comments

Comments
 (0)