Skip to content

Commit 32731e5

Browse files
committed
Scan image with trivy
1 parent daebd24 commit 32731e5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/build.yml

+11
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,14 @@ jobs:
4545
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
4646
REPOSITORY: ${{ inputs.ECR_REPOSITORY }}
4747
IMAGE_TAG: ${{ github.sha }}
48+
49+
- name: Scan for vulnerabilities (informative, non-breaking)
50+
id: scan
51+
uses: aquasecurity/trivy-action@master
52+
with:
53+
image-ref: ${REGISTRY}/${REPOSITORY}:${IMAGE_TAG}
54+
format: 'table'
55+
exit-code: '1'
56+
ignore-unfixed: true
57+
vuln-type: 'os,library'
58+
severity: 'CRITICAL,HIGH'

0 commit comments

Comments
 (0)