← 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, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.
- GET /user/codespaces/secretsuser access tokens only
- GET /user/codespaces/secrets/public-keyuser access tokens only
- GET /user/codespaces/secrets/{secret_name}user access tokens only
- GET /user/codespaces/secrets/{secret_name}/repositoriesuser access tokens only
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
- T2codespace:secretsdocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.