Skip to content

Commit

Permalink
Force Redirect Registry URL because of redirect failures
Browse files Browse the repository at this point in the history
Current Image scan job is failing: https://testgrid.k8s.io/sig-security-snyk-scan#ci-kubernetes-snyk-master where redirect from registry.k8s.io to k8s.gcr.io fails. 

This PR will prevent this redirect failures until snyk client fix is available

Slack thread: https://kubernetes.slack.com/archives/C01CUSVMHPY/p1656438863833769
  • Loading branch information
PushkarJ authored Jul 8, 2022
1 parent 6b0cfd3 commit 3657592
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ periodics:
# container images scan
echo "Fetch the list of k8s images"
curl -Ls https://sbom.k8s.io/$(curl -Ls https://dl.k8s.io/release/latest.txt)/release | grep 'PackageName: registry.k8s.io/' | awk '{print $2}' > images
sed 's/registry.k8s.io/k8s.gcr.io/' images > redirect-images
while read image; do
echo "Running container image scan.."
EXIT_CODE=0
Expand All @@ -83,7 +84,7 @@ periodics:
else
echo "Scan completed image $image"
fi
done < images
done < redirect-images
annotations:
testgrid-create-test-group: "true"
testgrid-alert-email: [email protected]
Expand Down

0 comments on commit 3657592

Please sign in to comment.