GitHub repository Severitycritical builtIn

Description

A codespace in the 'Failed' state typically indicates an unrecoverable provisioning error: out-of-resource conditions, devcontainer build failures, or a deleted upstream image. Failed codespaces consume billing slots and obscure inventory dashboards. They should be deleted and re-created.

Recommandation

1. Go to https://github.com/codespaces or your organization's Codespaces dashboard. 
2. Identify any codespaces in 'Failed' state. 
3. Delete each one and re-create it from the source repository.

Règle de politique

{
  "target": "GHCodespace",
  "if": {
    "allOf": [
      {
        "resource": "GHCodespace",
        "property": "State",
        "operator": "notEquals",
        "value": "Failed"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}
Détails de la règle
  • ID de la règle: DOS5800
  • Code: GH_Repository_Codespace_Should_Not_Be_Failed
  • Plateforme: GitHub
  • Catégorie: repository
  • Sévérité: Severitycritical
  • Type: builtIn