Skip to content

Commit

Permalink
Fix docker attestation fail on forked repo PRs (#3423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulhanek authored Sep 12, 2024
1 parent e7b7dc9 commit 194b5d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build_docker_image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- name: Build and push Docker image
id: push
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
if:
with:
context: .
file: ./Dockerfile
Expand All @@ -55,8 +56,9 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
if: ${{ github.event_name != 'pull_request' }}
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: ${{ github.event_name != 'pull_request' }}
push-to-registry: true

0 comments on commit 194b5d4

Please sign in to comment.