From 151b29544a7271b7acee401175033b86140238fd Mon Sep 17 00:00:00 2001 From: chgl Date: Thu, 7 Sep 2023 14:54:59 +0200 Subject: [PATCH] fix(ci): fix cosign image signing --- .github/workflows/ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ee7b750..8dd8d93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -136,16 +136,14 @@ jobs: - name: Install Cosign uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2 + # via - name: Sign image env: - IMAGES: ${{ needs.build.outputs.image-tags }} + # + TAGS: ${{ needs.build.outputs.image-tags }} DIGEST: ${{ needs.build.outputs.image-digest }} - COSIGN_EXPERIMENTAL: "true" run: | - while read -r image; do - echo "Signing '$image' using keyless approach" - cosign sign "$image@$DIGEST" - done <<< "$IMAGES" + echo "${TAGS}" | xargs -I {} cosign sign --yes {}@"${DIGEST}" container-provenance: if: ${{ startsWith(github.ref, 'refs/tags/') }}