Skip to content

Commit 72ab83c

Browse files
committed
Fix Docker publish workflow attestation permissions
- Add attestations: write permission - Add continue-on-error to prevent workflow failure - Image was successfully published, this fixes the red X
1 parent 6581122 commit 72ab83c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
contents: read
2929
packages: write
3030
id-token: write
31+
attestations: write
3132

3233
steps:
3334
- name: Checkout repository
@@ -88,6 +89,7 @@ jobs:
8889
- name: Generate artifact attestation
8990
if: github.event_name != 'pull_request'
9091
uses: actions/attest-build-provenance@v1
92+
continue-on-error: true
9193
with:
9294
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
9395
subject-digest: ${{ steps.build-and-push.outputs.digest }}

0 commit comments

Comments
 (0)