Skip to content

Commit e837b6d

Browse files
qkaiserJános Kukovecz
authored and
János Kukovecz
committed
chore(build): add docker container scanning with grype.
1 parent c722811 commit e837b6d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/build-publish-image.yml

+14
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ jobs:
6161
labels: ${{ steps.meta.outputs.labels }}
6262
outputs: type=image,name=${{ env.DOCKER_IMAGE }},push-by-digest=true,name-canonical=true,push=true
6363

64+
- name: Docker container vulnerability scan
65+
id: scan
66+
uses: anchore/scan-action@v3
67+
with:
68+
image: ${{ env.DOCKER_IMAGE }}
69+
fail-build: true
70+
severity-cutoff: critical
71+
only-fixed: true
72+
73+
- name: Upload SARIF report
74+
uses: github/codeql-action/upload-sarif@v2
75+
with:
76+
sarif_file: ${{ steps.scan.outputs.sarif }}
77+
6478
- name: Check unblob - help
6579
run: docker run --rm ${{ env.DOCKER_IMAGE }}:latest --help
6680

0 commit comments

Comments
 (0)