diff --git a/hooks/post-command b/hooks/post-command index 1bd81b2..ed45983 100644 --- a/hooks/post-command +++ b/hooks/post-command @@ -58,7 +58,7 @@ cosign_keyless() { rm out.sig || true - COSIGN EXPERIMENTAL=1 cosign sign \ + COSIGN_EXPERIMENTAL=1 cosign sign \ -y \ --fulcio-url="${fulcio_url}" \ --rekor-url="${rekor_url}" \ @@ -66,7 +66,7 @@ cosign_keyless() { --oidc-provider="${oidc_provider}" \ --output-signature=out.sig \ "${image}" - + status=$? if [[ $status -ne 0 ]]; then fail_with_message "cosign" "Failed to sign image"