Commit 5981771
ci(release): derive release notes from CHANGELOG.md (#52)
Previously `release.yml` ran `gh release create --generate-notes`, which
produces GitHub's raw PR-list auto-summary. OpenSSF BestPractices
`release_notes` explicitly disqualifies that form — release notes must
be a human-readable curated summary of major changes and upgrade impact.
This ties the release workflow to CHANGELOG.md as the single source:
1. After artifact download, a new "Resolve release notes" step:
- Looks for `## [vX.Y.Z]` or `## [X.Y.Z]` in CHANGELOG.md.
- If missing, promotes non-empty `## [Unreleased]` → `## [X.Y.Z] — <today>`,
inserts a fresh `## [Unreleased]` above it, commits the rename to
main as github-actions[bot], and re-extracts.
- If neither [Unreleased] nor [X.Y.Z] have content, fails with a
clear instruction to populate CHANGELOG.md.
- Emits the extracted section as a multi-line step output.
2. The "Create GitHub release" step consumes that output via
`--notes-file` (prepended to the existing cosign Verify footer).
The old draft-then-edit dance is gone.
CHANGELOG.md gets a short contributor note explaining the flow so the
promotion is discoverable.
One acceptable consequence: the binary's embedded Commit SHA refers to
the pre-rename commit (github.sha captured by the build job), while the
tag points to the post-rename commit. The binary bytes are unaffected;
only the CHANGELOG.md doc differs.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ab01676 commit 5981771
2 files changed
Lines changed: 78 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
162 | 228 | | |
163 | 229 | | |
164 | 230 | | |
| |||
201 | 267 | | |
202 | 268 | | |
203 | 269 | | |
| 270 | + | |
204 | 271 | | |
205 | 272 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | 273 | | |
216 | | - | |
| 274 | + | |
217 | 275 | | |
218 | 276 | | |
219 | 277 | | |
| |||
226 | 284 | | |
227 | 285 | | |
228 | 286 | | |
229 | | - | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
230 | 291 | | |
231 | 292 | | |
232 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
0 commit comments