Skip to content

Commit 8b02d78

Browse files
committed
(maint) Add Trivy scan to build-test-push
Trivy is our official container scanning solution now, so this adds a trivy scan whenever we try to push a new puppet-dev-tools container so we don't release containers with unwanted vulnerabilities. Trivy only scans the root-based image to save time as there are no os-level differences between root and rootless images.
1 parent 13aabea commit 8b02d78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build-test-push.yml

+8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
run: ./build-rootless.sh $(echo $GITHUB_REPOSITORY |cut -d '/' -f1)
1414
- name: Build standard image
1515
run: ./build.sh $(echo $GITHUB_REPOSITORY |cut -d '/' -f1)
16+
- name: Trivy scan
17+
uses: aquasecurity/trivy-action@master
18+
with:
19+
image-ref: puppet-dev-tools:latest
20+
exit-code: 1
21+
ignore-unfixed: true
22+
severity: 'CRITICAL,HIGH,MEDIUM'
23+
vuln-type: os
1624
- name: Run tests
1725
run: cd tests; ./run_tests.sh
1826
- name: Tag Docker images

0 commit comments

Comments
 (0)