Skip to content

Commit 026eede

Browse files
feat(ci): attest build provenance (#56)
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: - `artifacts/*.tar.gz` - `artifacts/*.sha256` (release job) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a21b290 commit 026eede

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ jobs:
112112
timeout-minutes: 15
113113
permissions:
114114
contents: write
115+
id-token: write
116+
attestations: write
115117
steps:
116118
- name: Download all artifacts
117119
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -131,3 +133,9 @@ jobs:
131133
fail_on_unmatched_files: false
132134
env:
133135
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
- name: Attest build provenance
137+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
138+
with:
139+
subject-path: |
140+
artifacts/*.tar.gz
141+
artifacts/*.sha256

0 commit comments

Comments
 (0)