Skip to content

Commit 40a9827

Browse files
committed
ci: use GitHub attestations
1 parent 212a7ed commit 40a9827

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/build-push.yml

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
build-push:
2323
runs-on: ubuntu-latest
2424
permissions:
25+
attestations: write
2526
contents: write
2627
packages: write
2728
pull-requests: write
@@ -98,6 +99,10 @@ jobs:
9899
with:
99100
comment-summary-in-pr: on-failure
100101
fail-on-severity: critical
102+
- uses: actions/attest-build-provenance@v1
103+
with:
104+
subject-name: ${{ env.REGISTRY }}/${{ github.repository }}-${{ matrix.flavor }}
105+
subject-digest: ${{ steps.build-and-push.outputs.digest }}
101106
- name: Sign the images with GitHub OIDC token
102107
if: github.event_name != 'merge_group'
103108
# This step uses the GitHub OIDC identity token to provision an ephemeral certificate

0 commit comments

Comments
 (0)