Commit 685161c
authored
feat(release): add build provenance attestations (#28)
* feat(release): add build provenance attestations
- Add id-token and attestations permissions
- Generate attestation for each build artifact using actions/attest-build-provenance@v1
- Attestations provide cryptographic proof of build integrity and source
Users can verify attestations with:
gh attestation verify <artifact> --owner RichardSlater
* fix(release): extract GitHub username from commit author email
- Use git log format '%aN <%aE>' to get both name and email
- Extract GitHub username from @users.noreply.github.com emails via sed
- Fall back to author name for non-GitHub emails
- Ensures @mentions in release notes link to correct GitHub users
Example transformations:
'Richard Slater <123456+RichardSlater@users.noreply.github.com>' -> '@RichardSlater'
'John Doe <john@example.com>' -> '@john Doe'1 parent 457dae6 commit 685161c
2 files changed
+17
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
156 | 158 | | |
157 | 159 | | |
158 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
| |||
199 | 206 | | |
200 | 207 | | |
201 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
202 | 216 | | |
203 | 217 | | |
204 | 218 | | |
205 | 219 | | |
206 | 220 | | |
207 | 221 | | |
208 | | - | |
| 222 | + | |
209 | 223 | | |
210 | 224 | | |
211 | | - | |
| 225 | + | |
212 | 226 | | |
213 | 227 | | |
214 | 228 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments