Skip to content

Commit

Permalink
Add trivy scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
atarassov-ttd committed Nov 24, 2023
1 parent 039cc4f commit b627267
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,29 @@ jobs:
cd build
make package
make test
- name: Generate Trivy vulnerability scan report
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
format: 'sarif'
exit-code: '0'
ignore-unfixed: true
severity: 'CRITICAL,HIGH'
output: 'trivy-results.sarif'
hide-progress: true

- name: Upload Trivy scan report to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'

- name: Test with Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
scan-type: 'fs'
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL'
hide-progress: true

0 comments on commit b627267

Please sign in to comment.