Skip to content

Commit

Permalink
Don't add attestations when we don't publish the build
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed May 17, 2024
1 parent 9129a71 commit 082bfbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ jobs:
# This step generates an artifact attestation for the image, which is an unforgeable statement about where and how it was built. It increases supply chain security for people who consume the image. For more information, see "[AUTOTITLE](/actions/security-guides/using-artifact-attestations-to-establish-provenance-for-builds)."
- name: Generate artifact attestation
uses: actions/[email protected]
if: ${{ env.is_published_build }}
with:
subject-name: ${{ env.container_registry }}/${{ env.docker_image_name}}
subject-digest: ${{ steps.push.outputs.digest }}
Expand Down

0 comments on commit 082bfbf

Please sign in to comment.