Skip to content

Commit

Permalink
chore(trivy): add options according to TRG 8.04
Browse files Browse the repository at this point in the history
  • Loading branch information
evegufy committed Nov 13, 2024
1 parent 53abd22 commit 696745d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
format: "sarif"
output: "trivy-results1.sarif"
vuln-type: "os,library"
severity: 'CRITICAL,HIGH' # While vulnerabilities of all severities are reported in the SARIF output, the exit code and workflow failure are triggered only by these specified severities (CRITICAL or HIGH).
exit-code: '1' # Trivy exits with code 1 if vulnerabilities are found, causing the workflow step to fail.
limit-severities-for-sarif: true

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
Expand Down

0 comments on commit 696745d

Please sign in to comment.