Skip to content

Commit 3a8b888

Browse files
authored
Run Trivy scan on build (#170)
1 parent adf5e02 commit 3a8b888

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build-test.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,18 @@ jobs:
8383
with:
8484
context: .
8585
platforms: ${{ matrix.platform }}
86+
load: true
8687
push: false
8788
tags: quay.io/jetstack/version-checker:${{github.sha}}
8889
cache-from: type=gha
8990
cache-to: type=gha,mode=max
91+
92+
- name: Run Trivy vulnerability scanner
93+
uses: aquasecurity/[email protected]
94+
with:
95+
image-ref: 'quay.io/jetstack/version-checker:${{github.sha}}'
96+
format: 'table'
97+
exit-code: '1'
98+
ignore-unfixed: true
99+
vuln-type: 'os,library'
100+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)