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.

Recommandation

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.

Règle de politique

{
  "target": "GHActionsVariable",
  "if": {
    "allOf": [
      {
        "resource": "GHActionsVariable",
        "property": "Value",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}
Détails de la règle
  • ID de la règle: DOS5920
  • Code: GH_Repository_Actions_Variable_Should_Have_Value
  • Plateforme: GitHub
  • Catégorie: repository
  • Sévérité: Severitylow
  • Type: builtIn