From a7316b0f5c579a9c16e96e797961b0ef3db0be2e Mon Sep 17 00:00:00 2001 From: Grigals <42711835+grigals@users.noreply.github.com> Date: Thu, 23 Nov 2023 11:26:57 +0000 Subject: [PATCH] Apply workflow cosign fix (#35) Update `cosign` for build automation as per [duplicate issue](https://github.com/AMRC-FactoryPlus/acs-mqtt/pull/6) --- .github/workflows/docker-publish.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 614fab2..18236ca 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -45,9 +45,7 @@ jobs: # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@f3c664df7af409cb4873aa5068053ba9d61a57b6 #v2.6.0 - with: - cosign-release: 'v1.13.1' + uses: sigstore/cosign-installer@v3.1.1 # Workaround: https://github.com/docker/build-push-action/issues/461 - name: Setup Docker buildx @@ -97,4 +95,4 @@ jobs: COSIGN_EXPERIMENTAL: "true" # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign {}@${{ steps.build-and-push.outputs.digest }} + run: echo "${{ steps.meta.outputs.tags }}" | xargs -I {} cosign sign --yes {}@${{ steps.build-and-push.outputs.digest }}