digest
This commit is contained in:
parent
35b218029b
commit
48cfb2cb57
1 changed files with 8 additions and 2 deletions
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
|
|
@ -44,8 +44,14 @@ jobs:
|
|||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
- name: Capture image digest
|
||||
id: capture-digest
|
||||
run: |
|
||||
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/${{ github.repository_owner }}/${{ github.repository }}:latest)
|
||||
echo "::set-output name=digest::$DIGEST"
|
||||
|
||||
- name: Attest build provenance
|
||||
uses: actions/attest-build-provenance@v1
|
||||
with:
|
||||
subject-path: ${{ github.workspace }}
|
||||
subject-digest: ${{ steps.capture-digest.outputs.digest }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue