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.
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.
{
"target": "GHCodespace",
"if": {
"allOf": [
{
"resource": "GHCodespace",
"property": "State",
"operator": "notEquals",
"value": "Failed"
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions | v1.0.2