Repository navigation
Commit e86bf5e
fix(release): replace SLSA reusable-workflow provenance with actions/attest-build-provenance
The provenance job added in #164 (slsa-framework/slsa-github-generator's
generator_generic_slsa3.yml reusable workflow) failed the v0.23.0 release
with a hard startup_failure -- zero jobs scheduled, not even unrelated
ones like build-and-test.
Root-caused via a throwaway diagnostic branch (deleted): this org has
'Write permissions for workflows' disabled repo-wide
(actions/permissions/workflow reports default_workflow_permissions:
read, and PUT to write returns 409 'disabled by the organization').
GitHub validates a job's requested permissions against that policy at
PARSE TIME specifically for jobs that call an external reusable
*workflow* (uses: owner/repo/.github/workflows/x.yml@ref) -- even a
bare-minimum such job with read-only-looking permissions triggered the
same startup_failure. Confirmed by elimination: removing the job let
build-and-test run; a bare bones version of the same reusable-workflow
call reproduced the failure in isolation; a normal composite action
inside a normal job (matching npm-publish's already-working
id-token: write pattern) ran successfully.
Fix: actions/attest-build-provenance is a plain composite action, not a
reusable workflow, so it isn't subject to that check -- same permission
scopes (id-token: write, now attestations: write instead of contents),
same normal-job shape npm-publish already uses successfully. Its
bundle-path output is a JSON-serialized Sigstore bundle wrapping a real
in-toto statement, genuinely valid under both extensions OpenSSF
Scorecard's Signed-Releases probes scan release assets for
(releasesAreSigned: .sigstore.json; releasesHaveProvenance:
.intoto.jsonl) -- uploaded as both, not fabricated duplicates.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 74c73b5 commit e86bf5e
1 file changed
Lines changed: 48 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
| 383 | + | |
383 | 384 | | |
384 | | - | |
385 | | - | |
| 385 | + | |
| 386 | + | |
386 | 387 | | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
396 | 426 | | |
397 | 427 | | |
398 | 428 | | |
| |||
421 | 451 | | |
422 | 452 | | |
423 | 453 | | |
424 | | - | |
| 454 | + | |
425 | 455 | | |
426 | 456 | | |
427 | | - | |
| 457 | + | |
428 | 458 | | |
429 | 459 | | |
430 | 460 | | |
| |||
491 | 521 | | |
492 | 522 | | |
493 | 523 | | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
| 524 | + | |
| 525 | + | |
498 | 526 | | |
499 | 527 | | |
500 | 528 | | |
501 | 529 | | |
502 | 530 | | |
503 | | - | |
| 531 | + | |
| 532 | + | |
0 commit comments