forked from ChelseaKR/habitable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain-branch.json
More file actions
42 lines (42 loc) · 1.71 KB
/
Copy pathmain-branch.json
File metadata and controls
42 lines (42 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"_comment": "P1-2 (habitable-REMEDIATION.md): committed ruleset artifact, NOT yet applied. Apply with: gh api --method POST repos/ChelseaKR/habitable/rulesets --input .github/rulesets/main-branch.json -- a maintainer must run this deliberately; see docs/adr/0006-solo-maintainer-review-count-exception.md for why required_approving_review_count stays 0 with an explicit bypass, not silently unenforced.",
"name": "main branch protection",
"target": "branch",
"enforcement": "active",
"conditions": {
"ref_name": { "include": ["~DEFAULT_BRANCH"], "exclude": [] }
},
"rules": [
{ "type": "deletion" },
{ "type": "non_fast_forward" },
{ "type": "required_linear_history" },
{ "type": "required_signatures" },
{
"type": "pull_request",
"parameters": {
"required_approving_review_count": 0,
"dismiss_stale_reviews_on_push": true,
"require_code_owner_review": true,
"require_last_push_approval": false,
"required_review_thread_resolution": true
}
},
{
"type": "required_status_checks",
"parameters": {
"strict_required_status_checks_policy": true,
"required_status_checks": [
{ "context": "lint · types · tests (the merge gate)" },
{ "context": "secret scanning (gitleaks)" },
{ "context": "dependency vulnerability audit" },
{ "context": "axe-core WCAG scan (merge gate)" },
{ "context": "CodeQL (python)" },
{ "context": "mechanical i18n gates — UTF-8 · BCP 47 · EN/ES parity (merge gate)" },
{ "context": "Trivy image scan (relay)" },
{ "context": "zizmor workflow security scan" }
]
}
}
],
"bypass_actors": []
}