Skip to content

Commit 92fe3b8

Browse files
feat(ci): attest build provenance (#71)
Part of the estate attestation rollout: add GitHub-native build-provenance attestation to the release pipeline. Adds `actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2` to the job that uploads release artifacts via `softprops/action-gh-release`, attesting the exact same files. Grants `id-token: write` + `attestations: write` (keeping `contents: write`) on that job. Attested paths: - `release/*` (release job) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3f707c0 commit 92fe3b8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ jobs:
143143
needs: [build-linux, build-macos, build-windows, build-lsp]
144144
runs-on: ubuntu-latest
145145
timeout-minutes: 30
146+
permissions:
147+
contents: write
148+
id-token: write
149+
attestations: write
146150
steps:
147151
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v4
148152

@@ -164,3 +168,8 @@ jobs:
164168
generate_release_notes: true
165169
env:
166170
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171+
172+
- name: Attest build provenance
173+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
174+
with:
175+
subject-path: 'release/*'

0 commit comments

Comments
 (0)