policy name: default_branch_protection_not_globally_enforced
Branch protection is not enabled for the entire server or account by default. Any newly created repository will not be protected unless explicitly specified. Protecting branches ensures new code changes must go through a controlled merge process and it allows enforcement of code review and other security tests. It is recommended to turn it on by default.
- Press Settings -> Repository
- Expand “Default Branch” section
- Toggle “Fully protected”
- Press “Save Changes”