Skip to content

Commit

Permalink
Merge pull request #409 from netscaler/update-trivy
Browse files Browse the repository at this point in the history
trivy workflow to fail when found vulnerabilities and upload sarif file
  • Loading branch information
sumanth-lingappa authored Apr 12, 2024
2 parents 2f48082 + f46636a commit 91d443d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
with:
scan-type: "fs"
ignore-unfixed: true
exit-code: '1'
format: "sarif"
output: "trivy-results.sarif"
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"

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

0 comments on commit 91d443d

Please sign in to comment.