File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,12 @@ jobs:
69
69
env :
70
70
REGISTRY_URL : ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
71
71
IMAGE_NAME : ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/${{ env.ECR_REPO }}:${{ env.CODE_BRANCH }}.${{ github.run_number }}
72
- run : |
73
- echo "Testing Image with Trivy: $IMAGE_NAME"
74
- docker run --rm --name trivy -u root -v /var/run/docker.sock:/var/run/docker.sock aquasecurity/trivy:latest \
75
- image --exit-code 1 --severity HIGH,CRITICAL $IMAGE_NAME
72
+ uses : aquasecurity/trivy-action@master
73
+ with :
74
+ image-ref : ' ${{ env.IMAGE_NAME }}'
75
+ format : ' table'
76
+ exit-code : 1
77
+ severity : ' CRITICAL,HIGH'
76
78
77
79
- name : Configure AWS Role to assume using OIDC authentication
78
80
uses : aws-actions/configure-aws-credentials@v4
You can’t perform that action at this time.
0 commit comments