Git branch checks Package
Check that the build has an expected target git branch. The specific branches permitted are specified as a list of regexes in the allowed_target_branch_patterns rule data.
Rules Included
Builds have a trusted target branch
Build must target a configured branch pattern (e.g., 'c10s')
-
Rule type: FAILURE
-
FAILURE message:
Build target is %s which is not a trusted target branch -
Code:
git_branch.git_branch -
Effective from:
2025-07-01T00:00:00Z
allowed_target_branch_patterns format
Confirm the allowed_target_branch_patterns rule data uses anchored regex patterns.
-
Rule type: FAILURE
-
FAILURE message:
%s -
Code:
git_branch.allowed_target_branch_patterns_format