← All permissions
Repository permission·actions_variables:write
Variables: Write
Tier 2 · Medium
Why Tier 2
Changes repository Actions variables. Workflows that put a variable into a shell command can be steered by it.
Can reach T1 when a workflow that holds secrets or deploys puts the variable into a shell command or uses it to choose what runs, so changing it runs the attacker's command in that job.
Inferred from: GitHub Docs: secure use
- Target
- Repository
- Plane
- DataWorkflows: Workflow files and runs, variables, deployments, environments and Pages.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Every setup
What it unlocks
3 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.
- POST /repos/{owner}/{repo}/actions/variables
- PATCH /repos/{owner}/{repo}/actions/variables/{name}
- DELETE /repos/{owner}/{repo}/actions/variables/{name}
Roles that include it
- T0OwnerThe organization and every repository in it
- T0All-repository adminEvery repository in the organization
- T1WriteOne repository
- T1MaintainOne repository
- T1AdminOne repository
- T1All-repository writeEvery repository in the organization
- T1All-repository maintainEvery repository in the organization
Custom role permissions that add it
An owner can build a custom role from these on Enterprise Cloud. Nobody holds one until a custom role with it is assigned.
- Manage variables
write_repository_actions_variablesrepository role - Manage environments (including environment secrets and variables)
write_repository_actions_environmentsrepository role
Classic scopes that reach it
- T0repodocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.