Skip to content

Commit

Permalink
Merge pull request #3238 from sbueringer/pr-fix-trivy
Browse files Browse the repository at this point in the history
🌱 Switch to using ECR mirror for trivy DB repo
  • Loading branch information
k8s-ci-robot authored Oct 28, 2024
2 parents fea2ad7 + 96a97d4 commit 14620a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hack/verify-container-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ fi

VERSION=${1}
GO_ARCH="$(go env GOARCH)"
DB_MIRROR="public.ecr.aws/aquasecurity/trivy-db"

REPO_ROOT=$(git rev-parse --show-toplevel)
"${REPO_ROOT}/hack/ensure-trivy.sh" "${VERSION}"
Expand All @@ -35,7 +36,7 @@ make REGISTRY=gcr.io/k8s-staging-capi-vsphere PULL_POLICY=IfNotPresent TAG=dev d
make clean-release-git

# Scan the images
"${TRIVY}" image -q --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller-"${GO_ARCH}":dev && R1=$? || R1=$?
"${TRIVY}" image --db-repository="${DB_MIRROR}" -q --exit-code 1 --ignore-unfixed --severity MEDIUM,HIGH,CRITICAL gcr.io/k8s-staging-capi-vsphere/cluster-api-vsphere-controller-"${GO_ARCH}":dev && R1=$? || R1=$?

echo ""
BRed='\033[1;31m'
Expand Down

0 comments on commit 14620a2

Please sign in to comment.