Skip to content

Commit

Permalink
Test trivy for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
antonym committed Feb 2, 2025
1 parent 7963d1d commit c2b3307
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,14 @@ jobs:
fetch-depth: '0'

- name: Build the Docker image
run: docker build .
run: docker build -t docker-netbootxyz:${{ github.sha }} .

- name: Run Trivy vulnerability scanner
uses: aquasecurity/[email protected]
with:
image-ref: 'docker-netbootxyz:${{ github.sha }}'
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'

0 comments on commit c2b3307

Please sign in to comment.