Commit 7c393af
feat(signing): enforce strict OIDC extraction, remove fallback
Remove silent fallback to GITHUB_WORKFLOW_REF when OIDC extraction fails.
This prevents creating attestations with incorrect builder IDs that will
fail verification.
Breaking Change:
- Operations now fail fast with clear error when OIDC token extraction fails
- No longer falls back to GITHUB_WORKFLOW_REF (which creates broken attestations)
- Users must properly configure OIDC environment (id-token: write permission)
Benefits:
- Prevents wasted CI resources (fails before signing, not at verification)
- Clear error messages guide users to fix OIDC configuration
- Eliminates security risk of silent degradation to wrong builder ID
- Ensures attestations match Fulcio certificate identity
Updated tests to reflect new fail-fast behavior.
Co-authored-by: Ona <no-reply@ona.com>1 parent ffb6270 commit 7c393af
2 files changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 98 | + | |
102 | 99 | | |
103 | 100 | | |
104 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
602 | | - | |
| 602 | + | |
603 | 603 | | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| |||
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
1094 | | - | |
| 1094 | + | |
1095 | 1095 | | |
1096 | 1096 | | |
1097 | | - | |
| 1097 | + | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
| |||
0 commit comments