GitLab project Severitymedium builtIn

Description

CI/CD variables should not have empty values. An empty value indicates a placeholder that was never populated — the dependent pipeline jobs will fail at runtime with confusing error messages. Either populate the value or delete the variable. Note: this rule does NOT check value content (which is masked / undisclosed); it only checks for non-empty length.

Recommandation

1. Go to project Settings > CI/CD > Variables (or group equivalent). 
2. For each variable with empty value, either populate it from your secret manager OR delete the variable.

Règle de politique

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