GitHub repository Severitylow builtIn

Description

Every Actions variable must have a non-empty name (the workflow YAML references it as vars.<NAME>). Records with empty names are typically transient API states that cannot be consumed by any workflow and clutter the variables UI.

Recommendation

1. Go to Repository or Organization Settings -> Secrets and variables -> Actions -> Variables. 
2. Identify any variables without names and delete or rename them.

Policy Rule

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