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.
For the Branch name pattern, add salto/before/env/<targetEnvId>/deployment/*
.
(To apply the rules to all environments you can add salto/before/**/*
).
For the remainder of the page, complete this according to your organization's policies.
If your policies require retricting who can push to matching branches, you must include the saltoio user for Salto to function correctly.