File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -760,7 +760,8 @@ function safeWget() {
760
760
if ( (! $( isFileEmpty $COSIGN_PUB_KEY ) ) || ($( urlExists " ${COSIGN_PUB_KEY} " 1) ) ) && (! $( isFileEmpty $TMP_PATH ) ) ; then
761
761
echoInfo " INFO: Using cosign to verify temporary file integrity..."
762
762
COSIGN_VERIFIED=" true"
763
- cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $TMP_PATH " --insecure-ignore-tlog --insecure-ignore-sct || COSIGN_VERIFIED=" false"
763
+ cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $TMP_PATH " --insecure-ignore-tlog --insecure-ignore-sct || \
764
+ cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $TMP_PATH " || COSIGN_VERIFIED=" false"
764
765
765
766
if [ " $COSIGN_VERIFIED " == " true" ] ; then
766
767
echoInfo " INFO: Cosign successfully verified integrity of an already existing temporary file"
@@ -795,7 +796,8 @@ function safeWget() {
795
796
796
797
echoInfo " INFO: Using cosign to verify final file integrity..."
797
798
COSIGN_VERIFIED=" true"
798
- cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $OUT_PATH " --insecure-ignore-tlog --insecure-ignore-sct || COSIGN_VERIFIED=" false"
799
+ cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $OUT_PATH " --insecure-ignore-tlog --insecure-ignore-sct || \
800
+ cosign verify-blob --key=" $COSIGN_PUB_KEY " --signature=" $TMP_PATH_SIG " " $OUT_PATH " || COSIGN_VERIFIED=" false"
799
801
800
802
if [ " $COSIGN_VERIFIED " == " true" ] ; then
801
803
echoInfo " INFO: Cosign successfully verified integrity of downloaded file"
You can’t perform that action at this time.
0 commit comments