Skip to content

Commit 1f9c4cb

Browse files
committed
attest
1 parent df83dbe commit 1f9c4cb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/base-image.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
uses: docker/setup-buildx-action@v2
3434

3535
- name: Base image
36+
id: build-and-push
3637
run: |
3738
docker buildx build \
3839
--tag danielflook/terraform-github-actions-base:$GITHUB_RUN_ID \
@@ -54,3 +55,9 @@ jobs:
5455
image
5556
5657
echo "digest=$(<manifest-list-digest.txt)" >> "$GITHUB_OUTPUT"
58+
59+
- name: Generate image attestation
60+
uses: actions/attest-build-provenance@v2
61+
with:
62+
subject-name: index.docker.io/danielflook/terraform-github-actions-base
63+
subject-digest: ${{ steps.build-and-push.outputs.digest }}

0 commit comments

Comments
 (0)