Sanity check: every persisted GLProtectedBranch should have an Id greater than 0. An Id of 0 or null indicates a malformed inventory entry from a partial scan or a deserialization failure.
1. If a protected branch is reported with a non-positive Id, re-run the GitLab inventory scan (CLI: dos resource scan --enterprise GitLab) for the affected project.
{
"target": "GLProtectedBranch",
"if": {
"allOf": [
{
"resource": "GLProtectedBranch",
"property": "Id",
"operator": "greaterThan",
"value": 0
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. Tous droits réservés. Politique de confidentialité | Politique de témoins | Conditions d'utilisation | v1.0.2