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 f07c3f7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
permissions:
contents: read
packages: write
id-token: write
attestations: write

steps:
- uses: docker/setup-buildx-action@v3
Expand All @@ -23,6 +25,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ github.token }}
- uses: docker/build-push-action@v6
id: push
with:
push: true
platforms: |
Expand All @@ -33,3 +36,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 f07c3f7

Please sign in to comment.