Only upload Trivy reports to GitHub on master branch to avoid duplicates

This commit is contained in:
Tim de Pater
2023-01-07 07:24:31 +01:00
parent ef39565a26
commit d6e6462884

View File

@@ -45,6 +45,7 @@ jobs:
output: 'trivy-results.sarif'
- name: Upload Trivy scan results to GitHub Security tab
if: github.ref == 'refs/heads/master' && github.event_name == 'push'
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: 'trivy-results.sarif'