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.
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.
{
"target": "GLCiVariable",
"if": {
"allOf": [
{
"resource": "GLCiVariable",
"property": "Value",
"operator": "notEquals",
"value": ""
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions | v1.0.2