Skip to content

Commit f5478fe

Browse files
authoredOct 28, 2024··
Merge pull request #3239 from k8s-infra-cherrypick-robot/cherry-pick-3238-to-release-1.11
[release-1.11] 🌱 Switch to using ECR mirror for trivy DB repo
2 parents b311ee8 + 9d7f962 commit f5478fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎hack/verify-container-images.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ fi
2424

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

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

3738
# Scan the images
38-
"${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=$?
39+
"${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=$?
3940

4041
echo ""
4142
BRed='\033[1;31m'

0 commit comments

Comments
 (0)
Please sign in to comment.