Skip to content

Commit 49ce9d5

Browse files
chore: add branch-protection annotation to scorecard config
Using GitHub Rulesets instead of classic branch protection: - Rulesets require 1 approver and code owner review - last_push_approval disabled to allow auto-approve bot - bypass_actors: [] prevents admin bypass Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent a7407cc commit 49ce9d5

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.scorecard.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ annotations:
4747
- token-permissions
4848
reasons:
4949
- reason: not-applicable # Write permissions required for test reporting and release automation
50+
51+
# Branch protection: Using GitHub Rulesets instead of classic branch protection
52+
# - Rulesets require 1 approver and code owner review
53+
# - "last push approval" disabled to allow auto-approve bot to work
54+
# - "apply to administrators" handled via bypass_actors: [] in rulesets
55+
- checks:
56+
- branch-protection
57+
reasons:
58+
- reason: not-applicable # Using GitHub Rulesets with auto-approve bot requiring last_push_approval disabled

0 commit comments

Comments
 (0)