Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert to registry.k8s.io and upgrade snyk #27309

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ periodics:
- |
set -euo pipefail
apt update && apt -y install jq
wget -q -O /usr/local/bin/snyk https://github.com/snyk/snyk/releases/download/v1.733.0/snyk-linux && chmod +x /usr/local/bin/snyk
wget -q -O /usr/local/bin/snyk https://github.com/snyk/cli/releases/download/v1.993.0/snyk-linux && chmod +x /usr/local/bin/snyk
mkdir -p "${ARTIFACTS}"
if [ -z "${SNYK_TOKEN}" ]; then
echo "SNYK_TOKEN env var is not set, required for snyk scan"
Expand Down Expand Up @@ -67,7 +67,6 @@ 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 @@ -84,7 +83,7 @@ periodics:
else
echo "Scan completed image $image"
fi
done < redirect-images
done < images
annotations:
testgrid-create-test-group: "true"
testgrid-alert-email: [email protected]
Expand Down