← All permissions
Repository permission·environments:write
Environments: Write
Tier 1 · High
Why Tier 1
Creates and overwrites environment secrets and variables, which production deploy jobs read.
Data plane permissions start at Tier 2. This one is raised for the reason above.
- Target
- Repository
- Plane
- DataSecrets: Actions, environment, Dependabot, Codespaces and agent secrets, private registries and OIDC.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Every setup
What it unlocks
5 REST endpoints need this permission. A few of them:
- PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
- DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}
- POST /repos/{owner}/{repo}/environments/{environment_name}/variables
- PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}
Roles that include it
No built-in role includes it. Only tokens, Apps or custom roles can grant it.
Classic scopes that reach it
- T0repodocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.