Ensure branch has branch protection
By creating a branch protection rule, you can enforce certain workflows or requirements before a collaborator can push changes to a branch in your repository, including merging a pull request into the branch.
Risk Level: medium
Platform: Github
Spectral Rule ID: GH-HRD008
REMEDIATION
Managing a branch protection rule.
SaaS:
- On GitHub.com, navigate to the main page of the repository.
- Under your repository name, click Settings.
- In the Code and automation section of the sidebar, click Branches.
- Next to Branch protection rules, click Add rule.
Read more at the reference below.
Read more:
Updated over 1 year ago