diff --git a/hooks/post-command b/hooks/post-command index 1d00f2c..88df6dd 100755 --- a/hooks/post-command +++ b/hooks/post-command @@ -95,6 +95,8 @@ cosign_init() { fi if [ ${#init_flags[@]} -gt 0 ]; then + rm -rf ~/.sigstore + cosign initialize "${init_flags[@]}" status=$?