diff --git a/test/e2e_test_cosigned.sh b/test/e2e_test_cosigned.sh index baee893142b..45bcd8f6554 100755 --- a/test/e2e_test_cosigned.sh +++ b/test/e2e_test_cosigned.sh @@ -58,6 +58,7 @@ spec: - name: sample image: $KO_DOCKER_REPO/sample EOF + cat > cronjob.yaml < manykeys.pem <> manykeys.pem +# Save the old key +kubectl get secret -n cosign-system verification-key -o=json | jq -r '.data["cosign.key"]' | base64 --decode > cosign.key +kubectl delete secret -n cosign-system verification-key +kubectl create secret generic -n cosign-system verification-key --from-file=cosign.pub=manykeys.pem --from-literal=cosign.password=${COSIGN_PASSWORD} --from-file=cosign.key echo '::group:: disable verification' kubectl label namespace default --overwrite cosigned.sigstore.dev/include=false