Skip to content

Commit 13079cd

Browse files
✨ add attestations to image build
1 parent 1dcac08 commit 13079cd

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/build-push-images.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,4 +193,20 @@ jobs:
193193
tags: ${{ env.tag }}
194194
username: ${{ secrets.registry_username }}
195195
password: ${{ secrets.registry_password }}
196-
registry: ${{ inputs.registry }}
196+
registry: ${{ inputs.registry }}
197+
198+
attestations:
199+
needs: manifest
200+
runs-on: ubuntu-latest
201+
permissions:
202+
id-token: write
203+
contents: read
204+
attestations: write
205+
packages: write
206+
steps:
207+
- name: Generate artifact attestation
208+
uses: actions/attest-build-provenance@v2
209+
with:
210+
subject-name: ${{ inputs.registry }}/${{ inputs.image_name }}:${{ needs.prepare.outputs.tag }}
211+
subject-digest: 'sha256:fedcba0...'
212+
push-to-registry: true

0 commit comments

Comments
 (0)