Skip to content

Commit 196a905

Browse files
committed
.github: attest build provenance
1 parent b626ab3 commit 196a905

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ jobs:
127127
runs-on: ubuntu-24.04
128128
name: Upload signatures and checksums
129129
permissions:
130+
attestations: write
130131
contents: write
132+
id-token: write
131133
steps:
132134
- name: Checkout code
133135
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
@@ -140,3 +142,11 @@ jobs:
140142
env:
141143
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142144
CONFIGLET_MINISIGN_SECRET_KEY: ${{ secrets.CONFIGLET_MINISIGN_SECRET_KEY }}
145+
146+
- name: Generate signed build provenance attestations
147+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be
148+
with:
149+
subject-checksums: 'releases/*/configlet_*_checksums_sha256.txt'
150+
151+
- name: Verify artifact attestation
152+
run: gh attestation verify releases/*/*linux_x86-64.tar.gz -R exercism/configlet

0 commit comments

Comments
 (0)