Sanity check: every persisted GLCiVariable should have a non-empty Key. An empty Key indicates a corrupted inventory record from /api/v4/projects/:id/variables or /api/v4/groups/:id/variables; flag for re-scan.
1. If a CI variable is reported with an empty key, re-run the GitLab inventory scan (CLI: dos resource scan --enterprise GitLab) for the affected project or group.
{
"target": "GLCiVariable",
"if": {
"allOf": [
{
"resource": "GLCiVariable",
"property": "Key",
"operator": "notEquals",
"value": ""
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. Tous droits réservés. Politique de confidentialité | Politique de témoins | Conditions d'utilisation | v1.0.2