Protected branch entries should not use the literal wildcard '*' as their name pattern. Protecting every branch defeats the purpose of branch protection (which exists to distinguish important branches from working branches) and makes CI/CD branch-detection hostile.
1. Go to project Settings > Repository > Protected branches. 2. Remove any entry where the branch pattern is '*'. 3. Replace with specific patterns (main, release/*, prod*, etc.).
{
"target": "GLProtectedBranch",
"if": {
"allOf": [
{
"resource": "GLProtectedBranch",
"property": "Name",
"operator": "notEquals",
"value": "*"
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions | v1.0.2