Skip to content

Commit

Permalink
Generate build provenance attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
artyom committed Nov 23, 2024
1 parent aeebb0c commit 3de10af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v6
id: push
with:
push: true
platforms: |
Expand All @@ -33,3 +34,8 @@ jobs:
outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=6,force-compression=true
cache-from: type=gha
cache-to: type=gha,mode=max
- uses: actions/attest-build-provenance@v1
with:
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit 3de10af

Please sign in to comment.