Custom repository roles: Write
Why Tier 1
Creates, edits and deletes custom repository roles. A role builds on Read, Triage, Write or Maintain, never Admin, and can add permissions such as bypassing branch protections, editing rules, managing secrets, runners and deploy keys. Editing a role that is assigned changes access for everyone who has it, on every repository where they have it. Assigning a role is Administration (write).
Control plane permissions start at Tier 0. This one is lowered for the reason above.
- Target
- Organization
- Plane
- ControlRoles: Custom organization, repository and enterprise roles.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Enterprise Cloud, EMU, Server
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}/custom-repository-roles
- PATCH /orgs/{org}/custom-repository-roles/{role_id}
- DELETE /orgs/{org}/custom-repository-roles/{role_id}
- POST /orgs/{org}/custom_roles
- PATCH /orgs/{org}/custom_roles/{role_id}
- DELETE /orgs/{org}/custom_roles/{role_id}
Roles that include it
- T0OwnerThe organization and every repository in 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 custom repository roles
write_organization_custom_repo_roleorganization role
Classic scopes that reach it
- T0admin:orgdocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.
Other levels
GitHub Docs: Organization permissions for "Custom repository roles"