GitLab project Severitylow builtIn

Description

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.

Recommendation

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.

Policy Rule

{
  "target": "GLCiVariable",
  "if": {
    "allOf": [
      {
        "resource": "GLCiVariable",
        "property": "Key",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}