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:

  1. On GitHub.com, navigate to the main page of the repository.
  2. Under your repository name, click Settings.
  3. In the Code and automation section of the sidebar, click Branches.
  4. Next to Branch protection rules, click Add rule.

Read more at the reference below.

Read more: