Skip to content

Commit 241dd60

Browse files
committed
Add verification
1 parent fc22ae5 commit 241dd60

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,11 @@ jobs:
4444
with:
4545
subject-name: ${{ env.REGISTRY }}/${{ env.USER }}/${{ env.IMAGE_NAME }}
4646
subject-digest: '${{ steps.docker_build.outputs.digest }}'
47-
push-to-registry: true
47+
push-to-registry: true
48+
49+
- name: Verify
50+
env:
51+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
run: |
53+
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
54+
gh attestation verify oci://ghcr.io/${{ env.USER }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.release_tag }} -R ${{ github.repository }}

0 commit comments

Comments
 (0)