ghtier
← All permissions
Repository permission·agent_variables:write

Agent variables: Write

Tier 2 · Medium

Why Tier 2

Changes variables in the Copilot agent's environment.

Target
Repository
Plane
DataAI agents: Copilot agent settings and Copilot Spaces.
Granted by
Fine-grained PAT, GitHub App
Available on
Free, Team, Enterprise Cloud, EMU

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}/agents/variables
  • PATCH /repos/{owner}/{repo}/agents/variables/{name}
  • DELETE /repos/{owner}/{repo}/agents/variables/{name}

Roles that include it

No built-in role includes it. Only tokens, Apps or custom roles can grant it.

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 repository agent variableswrite_repository_agent_variablesrepository role

Classic scopes that reach it

Attack paths

No attack technique, escalation or incident on ghtier goes through this yet.

Other levels

GitHub Docs: Repository permissions for "Agent variables"