GitHub combines Branch and Merge protection rules into a single function. Navigate to the repository used by Salto, go to the Settings tab, select Branches on the left, and click on Add branch protection rule.
In Salto, you can find your environment branch name under Version Control. The exact branch you want to protect is displayed in bold after the last slash.
β
In GitHub, type your environment branch name under "Branch name pattern".
For the remainder of the page, complete this according to your organization's policies.
If your policies require restricting who can push to matching branches, you must include the saltoio user for Salto to function correctly.