GitHub repository Severitylow builtIn

Description

Actions variables with empty values configure workflows to consume a blank string at runtime, which typically causes silent failures (e.g., empty image tag, empty deployment URL). Either set a meaningful value, delete the variable, or replace it with a workflow-level default via env: in the workflow YAML.

Recommendation

1. Go to Repository or Organization Settings -> Secrets and variables -> Actions -> Variables. 
2. For each variable with an empty value, set a value or delete the variable.

Policy Rule

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