Skip to content

Commit

Permalink
Use fallback trivy db repos in testDocker
Browse files Browse the repository at this point in the history
  • Loading branch information
usmansaleem committed Oct 30, 2024
1 parent 9335457 commit fcc72f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ eth2 \
docker image rm ${DOCKER_TEST_IMAGE}

# also check for security vulns with trivy
docker run aquasec/trivy image $DOCKER_IMAGE
docker run \
-e "TRIVY_DB_REPOSITORY=ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db" \
-e "TRIVY_JAVA_DB_REPOSITORY=ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db" \
aquasec/trivy image $DOCKER_IMAGE

echo "test.sh Exit code: $i"
exit $i

0 comments on commit fcc72f6

Please sign in to comment.