Fix build by enabling Cosign experimental

Cosign 1.12.0 comes with a breaking change where verify blob requires `COSIGN_EXPERIMENTAL=1`

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2022-09-15 18:06:57 +03:00
parent 9ab1522271
commit 1ff0a20a0e
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ download_files() {
cosign_verify(){ cosign_verify(){
[[ $# -eq 3 ]] || fatal 'cosign_verify needs exactly 3 arguments' [[ $# -eq 3 ]] || fatal 'cosign_verify needs exactly 3 arguments'
cosign verify-blob --cert "$1" --signature "$2" "$3" COSIGN_EXPERIMENTAL=1 cosign verify-blob --cert "$1" --signature "$2" "$3"
[[ $? -eq 0 ]] || fatal 'signature verification failed' [[ $? -eq 0 ]] || fatal 'signature verification failed'
} }