From 66fe91072776fb8ef22e3a60d46e3ef12f82ba3d Mon Sep 17 00:00:00 2001 From: Gaspard Wierzbinski Date: Sat, 6 Apr 2024 20:48:42 -1000 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 74cc2de..710bac8 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -39,9 +39,7 @@ jobs: # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@v3 #v3.1.1 - with: - cosign-release: 'v2.1.1' + uses: sigstore/cosign-installer@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -83,18 +81,18 @@ jobs: platforms: linux/arm64,linux/amd64 cache-from: type=gha cache-to: type=gha,mode=max - + # TEMPORARILY DISABLED BECAUSE BROKEN # Sign the resulting Docker image digest except on PRs. # This will only write to the public Rekor transparency log when the Docker # repository is public to avoid leaking data. If you would like to publish # transparency data even for private images, pass --force to cosign below. # https://github.com/sigstore/cosign - - name: Sign the published Docker image - if: ${{ github.event_name != 'pull_request' }} - env: - # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable - TAGS: ${{ steps.meta.outputs.tags }} - DIGEST: ${{ steps.build-and-push.outputs.digest }} + #- name: Sign the published Docker image + # if: ${{ github.event_name != 'pull_request' }} + # env: + # # https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable + # TAGS: ${{ steps.meta.outputs.tags }} + # DIGEST: ${{ steps.build-and-push.outputs.digest }} # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + # run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}