From 0205eef979b798b134b99378554c91645bd840bd Mon Sep 17 00:00:00 2001 From: Eugene <70693118+MrLutik@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:42:59 +0100 Subject: [PATCH] Fix workflow blob sign interactive prompt --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ff73a8c5..d265b93d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -189,7 +189,7 @@ jobs: COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }} run: | echo "$KEY" > ../cosign.key - for FILE in *; do FILE_NAME=$(basename $FILE); cosign sign-blob --key=../cosign.key --output-signature=./${FILE_NAME}.sig ./$FILE_NAME; done + for FILE in *; do FILE_NAME=$(basename $FILE); yes | cosign sign-blob --key=../cosign.key --output-signature=./${FILE_NAME}.sig ./$FILE_NAME; done rm -fv ../cosign.key # ref: https://github.com/softprops/action-gh-release, v0.1.14 # Release on merge only (push action) - this should run only once