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.
1. Go to Repository or Organization Settings -> Secrets and variables -> Codespaces. 2. Delete or rename any secret with an empty name.
{
"target": "GHCodespacesSecret",
"if": {
"allOf": [
{
"resource": "GHCodespacesSecret",
"property": "Name",
"operator": "notEquals",
"value": ""
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions | v1.0.2