← All permissions
Organization permission·organization_actions_variables:write
Variables: Write
Tier 2 · Medium
Why Tier 2
Changes organization 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
- Organization
- 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
6 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 /orgs/{org}/actions/variables
- PATCH /orgs/{org}/actions/variables/{name}
- DELETE /orgs/{org}/actions/variables/{name}
- PUT /orgs/{org}/actions/variables/{name}/repositories
- PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}also needs a permission GitHub's data does not name
- DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}also needs a permission GitHub's data does not name
Roles that include it
- T1CI/CD adminThe organization's Actions setup
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 organization Actions variables
write_organization_actions_variablesorganization role
Classic scopes that reach it
- T0admin:orgdocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.