← All permissions
User permission·codespaces_user_secrets:write
Codespaces user secrets: Write
Tier 2 · Medium
Why Tier 2
Creates and overwrites secrets injected into the user's codespaces.
- Target
- User
- Plane
- DataSecrets: Actions, environment, Dependabot, Codespaces and agent secrets, private registries and OIDC.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Free, Team, Enterprise Cloud, EMU
What it unlocks
5 REST endpoints need this permission. A few of them:
- PUT /user/codespaces/secrets/{secret_name}
- DELETE /user/codespaces/secrets/{secret_name}
- PUT /user/codespaces/secrets/{secret_name}/repositories
Roles that include it
No built-in role includes it. Only tokens, Apps or custom roles can grant it.
Classic scopes that reach it
- T2codespacedocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.