Skip to main content
All CollectionsIntegrating Git and CI/CDGit ProvidersGitHub Cloud
Configuring Branch and Merge Protection Rules in GitHub Cloud
Configuring Branch and Merge Protection Rules in GitHub Cloud
Support avatar
Written by Support
Updated over a week ago

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.

Did this answer your question?