You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ this project aims to follow [Semantic Versioning](https://semver.org/spec/v2.0.0
20
20
21
21
### Added
22
22
23
+
- feat(rules): CicdRules `scorecard_wrapper_missing_job_permissions` — flag scorecard.yml wrappers that call the standards reusable but omit `security-events: write` on the calling job (#390)
@scorecard_missing_perm_reason"scorecard.yml calls the standards scorecard-reusable.yml but does not grant `security-events: write` on the calling job; called-workflow permissions are capped by the caller, so ossf/scorecard-action cannot upload its SARIF and the scheduled Scorecard run fails with `startup_failure` (silent CI failure, no logs)."
857
+
@scorecard_missing_perm_fix"Grant the calling job `security-events: write` (and `id-token: write`); the reusable re-asserts them, but the caller caps them:\n permissions:\n security-events: write\n id-token: write"
858
+
859
+
@doc"""
860
+
Scan `repo_path` for scorecard wrappers that call the standards reusable
861
+
but omit the required `security-events: write` job permission (#390).
862
+
863
+
A finding is emitted for each `.github/workflows/scorecard.yml` (repo-root
864
+
*or* nested monorepo copy) that, in the same file:
865
+
866
+
* references `scorecard-reusable.yml` (i.e. uses the reusable), AND
867
+
* does NOT grant `security-events: write`.
868
+
869
+
Inline scorecard workflows that do not call the reusable are ignored by
870
+
construction (the first condition fails). `opts[:path_allow_prefixes]` is a
871
+
list of substrings; any wrapper whose relative path contains one is skipped
872
+
— an explicit carve-out for bespoke scorecard workflows that manage their
0 commit comments