Skip to content

Commit 6ec459b

Browse files
feat(ci): attest build provenance (#53)
Add actions/attest-build-provenance (pinned @e8998f9 # v2) to the release job, attesting the same artifacts uploaded by softprops/action-gh-release. Grants id-token: write and attestations: write on that job. Attested paths: artifacts/gsa-linux-x86_64.tar.gz Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 1f6b74f commit 6ec459b

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
@@ -95,6 +95,8 @@ jobs:
9595
timeout-minutes: 30
9696
permissions:
9797
contents: write
98+
id-token: write
99+
attestations: write
98100
steps:
99101
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
100102

@@ -115,6 +117,12 @@ jobs:
115117
env:
116118
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117119

120+
- name: Attest build provenance
121+
uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be # v2
122+
with:
123+
subject-path: |
124+
artifacts/gsa-linux-x86_64.tar.gz
125+
118126
provenance:
119127
name: SLSA Provenance
120128
needs: [build]

0 commit comments

Comments
 (0)