GitHub repository Severitymedium builtIn

Description

Every Codespaces secret should carry a non-empty name. The codespace devcontainer references the secret via the environment variable substitution mechanism, so an unnamed secret cannot be consumed and only clutters the secrets list.

Recommandation

1. Go to Repository or Organization Settings -> Secrets and variables -> Codespaces. 
2. Delete or rename any secret with an empty name.

Règle de politique

{
  "target": "GHCodespacesSecret",
  "if": {
    "allOf": [
      {
        "resource": "GHCodespacesSecret",
        "property": "Name",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}
Détails de la règle
  • ID de la règle: DOS5930
  • Code: GH_Repository_Codespaces_Secret_Should_Have_Name
  • Plateforme: GitHub
  • Catégorie: repository
  • Sévérité: Severitymedium
  • Type: builtIn