policy name: missing_default_branch_protection
Branch protection is not enabled for this repository’s default branch. Protecting branches ensures new code changes must go through a controlled merge process and allows enforcement of code review as well as other security tests. This issue is raised if the default branch protection is turned off.
Any contributor with write access may push potentially dangerous code to this repository, making it easier to compromise and difficult to audit.
- Make sure you have owner permissions
- Go to the projects’s settings -> Repository page
- Enter “Protected branches” tab
- select the default branch. Set the allowed to merge to “maintainers” and the allowed to push to “No one”