-
-
Notifications
You must be signed in to change notification settings - Fork 2
Azure.DevOps.Repos.HasDefaultBranchPolicy
github-actions edited this page Dec 29, 2023
·
1 revision
category: Microsoft Azure DevOps Repos severity: Critical online version: https://github.com/cloudyspells/PSRule.Rules.AzureDevOps/blob/main/src/PSRule.Rules.AzureDevOps/en/Azure.DevOps.Repos.HasDefaultBranchPolicy.md
The repository's default branch should have a branch policy
A branch policy is a set of rules that govern the quality of the code and the team's Git workflow. Branch policies can enforce your team's code quality and change management standards. They can also help your team find and fix bugs earlier in the development cycle.
Mininum TokenType: ReadOnly
Consider adding a branch policy to the default branch of your repository. This will help ensure that the code in the default branch is of a high quality and that the team's Git workflow is followed.