Skip to content

Commit 3de10af

Browse files
committed
Generate build provenance attestation
1 parent aeebb0c commit 3de10af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/publish.yml

+6
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
username: ${{ github.actor }}
2424
password: ${{ github.token }}
2525
- uses: docker/build-push-action@v6
26+
id: push
2627
with:
2728
push: true
2829
platforms: |
@@ -33,3 +34,8 @@ jobs:
3334
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=6,force-compression=true
3435
cache-from: type=gha
3536
cache-to: type=gha,mode=max
37+
- uses: actions/attest-build-provenance@v1
38+
with:
39+
subject-name: ghcr.io/${{ github.repository }}
40+
subject-digest: ${{ steps.push.outputs.digest }}
41+
push-to-registry: true

0 commit comments

Comments
 (0)