← All permissions
User permission·codespaces_user_secrets:read
Codespaces user secrets: Read
Tier 3 · Low
Why Tier 3
Lists the user's Codespaces secret names. Values are never returned.
Data plane permissions start at Tier 2. This one is lowered for the reason above.
- 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
4 REST endpoints need this permission. A few of them:
- GET /user/codespaces/secrets
- GET /user/codespaces/secrets/public-key
- GET /user/codespaces/secrets/{secret_name}
- GET /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.