Skip to content

Commit

Permalink
fix: only run attestation if image is built
Browse files Browse the repository at this point in the history
  • Loading branch information
tobikris committed Oct 12, 2024
1 parent c355297 commit bb8fadc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
annotations: ${{ steps.meta.outputs.annotations }}

- name: Generate artifact attestation
if: steps.changed-files.outputs.any_changed == 'true'
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
Expand Down

0 comments on commit bb8fadc

Please sign in to comment.