Skip to content

Commit 72a61b9

Browse files
committed
Remove attestation step for private repository
Attestations are not available for private user-owned repos. Removed the step to prevent workflow failures. Image publishing works fine without attestations.
1 parent 72ab83c commit 72a61b9

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
permissions:
2828
contents: read
2929
packages: write
30-
id-token: write
31-
attestations: write
3230

3331
steps:
3432
- name: Checkout repository
@@ -85,12 +83,3 @@ jobs:
8583
cache-from: type=gha
8684
cache-to: type=gha,mode=max
8785
platforms: linux/amd64
88-
89-
- name: Generate artifact attestation
90-
if: github.event_name != 'pull_request'
91-
uses: actions/attest-build-provenance@v1
92-
continue-on-error: true
93-
with:
94-
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
95-
subject-digest: ${{ steps.build-and-push.outputs.digest }}
96-
push-to-registry: true

0 commit comments

Comments
 (0)