Skip to content

Commit 89edd3a

Browse files
committed
Chore(CI) -
1 parent e0649cb commit 89edd3a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,3 +360,13 @@ jobs:
360360

361361
- name: Build the Docker image
362362
run: docker build . --file Dockerfile --tag symfony-flex-backend:${{ steps.vars.outputs.DOCKER_TAG }}
363+
364+
- name: Scan Docker image with Trivy vulnerability scanner
365+
uses: aquasecurity/trivy-action@0.24.0
366+
with:
367+
image-ref: 'symfony-flex-backend:${{ steps.vars.outputs.DOCKER_TAG }}'
368+
format: 'table'
369+
exit-code: '1'
370+
ignore-unfixed: true
371+
vuln-type: 'os,library'
372+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)