Commit 73ac8af
committed
fix(release): grant provenance job contents:write and pass sha256sum format
two startup-blocking issues in release.yml when triggered on a v* tag:
- the provenance job called slsa-github-generator with upload-assets:true
but only granted contents:read to the reusable workflow. github rejects
the run at startup with: "the nested job 'upload-assets' is requesting
'contents: write', but is only allowed 'contents: read'". the slsa
reusable workflow needs write to attach provenance to the github release.
- base64-subjects was being passed the raw hex sha. the slsa workflow
expects base64("<sha> <name>\n") (the standard sha256sum line format).
added a subjects-base64 build output that emits exactly that.1 parent 3e1cb1f commit 73ac8af
1 file changed
Lines changed: 7 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | | - | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | | - | |
| 80 | + | |
78 | 81 | | |
79 | 82 | | |
80 | 83 | | |
| |||
0 commit comments