Skip to content

Commit beb1ba4

Browse files
authored
Merge pull request #79 from netbootxyz/trivy
Test trivy for PRs
2 parents 7963d1d + 176a4fd commit beb1ba4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
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/trivy-action@0.29.0
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)