mirror of
https://github.com/netbootxyz/docker-netbootxyz.git
synced 2025-08-07 06:37:43 +02:00
Test trivy for PRs
This commit is contained in:
parent
7963d1d72b
commit
176a4fd879
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -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/trivy-action@0.29.0
|
||||
with:
|
||||
image-ref: 'docker-netbootxyz:${{ github.sha }}'
|
||||
format: 'table'
|
||||
exit-code: '1'
|
||||
ignore-unfixed: true
|
||||
vuln-type: 'os,library'
|
||||
severity: 'CRITICAL,HIGH'
|
||||
|
Loading…
Reference in New Issue
Block a user