diff --git a/.github/workflows/docker-release-amd64.yml b/.github/workflows/docker-release-amd64.yml index 5ca1d33..e24dd8a 100644 --- a/.github/workflows/docker-release-amd64.yml +++ b/.github/workflows/docker-release-amd64.yml @@ -84,9 +84,7 @@ jobs: - 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 }} + COSIGN_EXPERIMENTAL: "true" # 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: cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }} \ No newline at end of file