Skip to content

Commit

Permalink
Add attestations (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul authored May 31, 2024
1 parent cc472c6 commit 9f043ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
id: build-push
with:
push: ${{ github.event_name == 'push' }}
tags: ${{ steps.meta.outputs.tags }}
Expand All @@ -58,3 +59,10 @@ jobs:
pull: true
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache,mode=max
sbom: ${{ github.event_name == 'push' }}
- uses: actions/attest-build-provenance@v1
if: ${{ github.event_name == 'push' }}
with:
subject-name: ${{ steps.meta.outputs.tags[0] }}
subject-digest: ${{ steps.build-push.outputs.digest }}
push-to-registry: true

0 comments on commit 9f043ce

Please sign in to comment.