Repository navigation
Commit 8926c33
authored
fix(release): harden published artifact verification (#90)
The v0.5.1 run published the workflow-validated tarball with provenance, but
npm view transiently reported a different dist.integrity for longer than the
retry budget, so the release job was skipped even though the published bytes
were later proven byte-identical.
The gate accepted only two packument facts: an integrity string match and a
truthy attestation URL that was never fetched. It now verifies the published
bytes directly when metadata conflicts, checks npm's ECDSA registry signature,
and validates the Sigstore bundle and DSSE subject digest under a policy pinning
this repository, the release workflow, the version tag and the builder identity.
append-release-proof.mjs repeated the same weak check without retries, so both
gates now share one verifier. Releases are created as drafts before publication
and promoted only after verification, so a propagation incident leaves a
recoverable draft rather than no release at all.
Adds coverage for the exhaustion path, the byte-verification fallback in both
its accepting and still-fatal forms, the retry taxonomy, and append-release-proof.1 parent 6af7f93 commit 8926c33
11 files changed
Lines changed: 1672 additions & 173 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
231 | 267 | | |
232 | 268 | | |
233 | 269 | | |
234 | | - | |
| 270 | + | |
235 | 271 | | |
236 | 272 | | |
237 | 273 | | |
| |||
241 | 277 | | |
242 | 278 | | |
243 | 279 | | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
244 | 286 | | |
245 | 287 | | |
246 | 288 | | |
247 | 289 | | |
248 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
249 | 296 | | |
250 | 297 | | |
251 | 298 | | |
| |||
260 | 307 | | |
261 | 308 | | |
262 | 309 | | |
263 | | - | |
| 310 | + | |
264 | 311 | | |
265 | 312 | | |
266 | 313 | | |
267 | | - | |
| 314 | + | |
268 | 315 | | |
269 | 316 | | |
270 | 317 | | |
| |||
273 | 320 | | |
274 | 321 | | |
275 | 322 | | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
276 | 329 | | |
277 | 330 | | |
278 | 331 | | |
279 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
280 | 338 | | |
281 | 339 | | |
282 | 340 | | |
| |||
292 | 350 | | |
293 | 351 | | |
294 | 352 | | |
295 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
296 | 362 | | |
297 | 363 | | |
298 | 364 | | |
299 | 365 | | |
300 | | - | |
301 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
302 | 369 | | |
303 | 370 | | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
0 commit comments