Skip to content

Commit c2b3307

Browse files
committed
Test trivy for PRs
1 parent 7963d1d commit c2b3307

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,14 @@ jobs:
1616
fetch-depth: '0'
1717

1818
- name: Build the Docker image
19-
run: docker build .
19+
run: docker build -t docker-netbootxyz:${{ github.sha }} .
20+
21+
- name: Run Trivy vulnerability scanner
22+
uses: aquasecurity/[email protected]
23+
with:
24+
image-ref: 'docker-netbootxyz:${{ github.sha }}'
25+
format: 'table'
26+
exit-code: '1'
27+
ignore-unfixed: true
28+
vuln-type: 'os,library'
29+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)