Skip to content

Commit

Permalink
Update trivy-scan.yaml
Browse files Browse the repository at this point in the history
add sarif-specific configuration to limit to correct severities
  • Loading branch information
ShahinMahmody authored Jul 29, 2024
1 parent d8ea530 commit e981967
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/trivy-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
exit-code: '1'
output: 'trivy-results.sarif'
severity: 'CRITICAL,HIGH'
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Security tab
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'
category: 'code'
category: 'code'

0 comments on commit e981967

Please sign in to comment.