Commit a6f1cd7
fix(ci): validate the Version PR and preflight its release evidence
The changesets action pushes the Version PR with GITHUB_TOKEN, and a push
made with that token starts no workflow run. The conclusion drawn from
that was that the Version PR cannot be checked at all, so it merged
through a standing ruleset bypass. workflow_dispatch is one of the two
documented exceptions to the no-new-run rule, so the same token starts
the same CI/CD workflow on the Version PR's own branch — no app, no
personal access token, no long-lived credential. Every Version PR head
commit gets one run, decided by asking whether the head already has one,
so a missed dispatch heals on the next push to main.
That run also carries a release evidence preflight. #1743 pinned subject
parity — the pre-release scans cover the images the release covers — but
the vulnerability policy is only one of the things the release gate
evaluates, and a release was still the only thing that ever produced an
evidence bundle. SBOM triple validation, the licence report binding,
index membership, and the linux/arm64 vulnerability policy for the images
we build could each fail for the first time at a release; the pinned
upstream digests need no build, so #1743 already covers both of their
platforms on the pull request that changes them. The preflight generates
and verifies a real bundle over the images its own run built, through the
one generator and the one verifier the release uses, so the only checks a
release can be the first to perform are the signature checks that need
signing material a release creates.
Evidence generation and image-digest resolution move out of release.yml
into scripts/generate-release-evidence.ts and
scripts/resolve-release-images.ts so there is one of each rather than a
second copy the preflight could drift from. Platform resolution reuses
isImageIndex, so a release subject that is a single manifest fails rather
than falling back to the index digest. ci-contract.test.ts asserts both
callers run both scripts and that the verifier's only mode-conditional
behaviour is signature verification, so a check gated on anything else
fails the contract test rather than a release; release-management.mdx
carries the check-by-check table and why the upstream images are
deliberately judged twice on the Version PR.
Verified with pnpm run format and pnpm run check, and with the new
node:test coverage for the resolver's retry and hand-off, the
generator's manifest against the real verifier, and the dispatcher's
branch and run decisions.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent aa0ebaf commit a6f1cd7
14 files changed
Lines changed: 733 additions & 131 deletions
File tree
- .github/workflows
- docs/contributor
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
11 | 20 | | |
12 | | - | |
13 | | - | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | 24 | | |
16 | 25 | | |
| |||
40 | 49 | | |
41 | 50 | | |
42 | 51 | | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
54 | 64 | | |
55 | 65 | | |
56 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
57 | 73 | | |
58 | 74 | | |
59 | 75 | | |
| |||
412 | 428 | | |
413 | 429 | | |
414 | 430 | | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
415 | 499 | | |
416 | 500 | | |
417 | 501 | | |
418 | 502 | | |
419 | 503 | | |
420 | 504 | | |
421 | 505 | | |
422 | | - | |
| 506 | + | |
423 | 507 | | |
424 | 508 | | |
425 | 509 | | |
| |||
479 | 563 | | |
480 | 564 | | |
481 | 565 | | |
| 566 | + | |
482 | 567 | | |
483 | 568 | | |
484 | 569 | | |
| |||
531 | 616 | | |
532 | 617 | | |
533 | 618 | | |
| 619 | + | |
534 | 620 | | |
535 | 621 | | |
536 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
111 | 117 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 118 | + | |
152 | 119 | | |
153 | 120 | | |
154 | 121 | | |
| |||
171 | 138 | | |
172 | 139 | | |
173 | 140 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 141 | | |
179 | 142 | | |
180 | 143 | | |
| |||
186 | 149 | | |
187 | 150 | | |
188 | 151 | | |
| 152 | + | |
| 153 | + | |
189 | 154 | | |
190 | 155 | | |
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 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
| 156 | + | |
| 157 | + | |
244 | 158 | | |
245 | 159 | | |
246 | 160 | | |
| |||
279 | 193 | | |
280 | 194 | | |
281 | 195 | | |
282 | | - | |
| 196 | + | |
283 | 197 | | |
284 | 198 | | |
285 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| 27 | + | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
| |||
40 | 44 | | |
41 | 45 | | |
42 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
0 commit comments