# Administration: Write (repository)

Tier 1 permission, `permission:administration:write`. Page: https://ghtier.com/tier/permissions/administration-write

Changes branch protection and rulesets, adds collaborators and deploy keys, registers runners, and can rename, transfer, make public or delete the repository.

**Included in roles:** [Admin](https://ghtier.com/tier/roles/repo-admin.md) (Tier 1), [Owner](https://ghtier.com/tier/roles/org-owner.md) (Tier 0), [All-repository admin](https://ghtier.com/tier/roles/org-all-repo-admin.md) (Tier 0)

**Reached by classic scopes:** [repo](https://ghtier.com/tier/tokens/repo.md) (Tier 0), [delete_repo](https://ghtier.com/tier/tokens/delete-repo.md) (Tier 1)

**Keys and policies that act as or change it:** [Deploy key with write access](https://ghtier.com/tier/keys-policies/deploy-key.md) (Tier 1), [Web session cookie](https://ghtier.com/tier/keys-policies/web-session.md) (Tier 0), [Runner registration token or JIT configuration](https://ghtier.com/tier/keys-policies/runner-registration.md) (Tier 1), [Copilot cloud agent firewall](https://ghtier.com/tier/keys-policies/agent-firewall.md) (Tier 2), [MCP server configuration for Copilot](https://ghtier.com/tier/keys-policies/agent-mcp-config.md) (Tier 1), [Ruleset bypass actor](https://ghtier.com/tier/keys-policies/ruleset-bypass.md) (Tier 1), [Outside collaborator](https://ghtier.com/tier/keys-policies/outside-collaborator.md) (Tier 1), [Workflow execution protections](https://ghtier.com/tier/keys-policies/workflow-execution-protections.md) (Tier 1), [Environment protection rules](https://ghtier.com/tier/keys-policies/environment-protection-rules.md) (Tier 1), [Member privileges: visibility changes, deletion and private forks](https://ghtier.com/tier/keys-policies/member-repository-privileges.md) (Tier 1), [Who can invite outside collaborators](https://ghtier.com/tier/keys-policies/outside-collaborator-invites.md) (Tier 1)

**Enables techniques:** [Approve your own PR from a second account](https://ghtier.com/attack-paths/technique-sock-puppet.md) (Tier 1), [Bypass or switch off the rules](https://ghtier.com/attack-paths/technique-admin-bypass.md) (Tier 0), [Force push or delete a protected branch](https://ghtier.com/attack-paths/technique-force-push.md) (Tier 1), [Post stolen data to a new public repository](https://ghtier.com/attack-paths/technique-exfil-public-repo.md) (Tier 1), [Flip private repos to public](https://ghtier.com/attack-paths/technique-visibility-flip.md) (Tier 0), [Add a guest collaborator or new app](https://ghtier.com/attack-paths/technique-add-collaborator.md) (Tier 0), [Register the attacker's machine as a runner](https://ghtier.com/attack-paths/technique-register-runner.md) (Tier 1)

**Ways in that use it:** [Repository admin or org owner](https://ghtier.com/attack-paths/insider-admin.md) (Tier 0)

**Starts escalations:** [Open an environment's protection rules](https://ghtier.com/attack-paths/escalation-admin-to-environment.md) (Tier 1), [Flip private repositories to public](https://ghtier.com/attack-paths/escalation-admin-to-public.md) (Tier 0), [Register a self-hosted runner](https://ghtier.com/attack-paths/escalation-admin-to-runner.md) (Tier 1), [Add a collaborator or guest that outlives the attack](https://ghtier.com/attack-paths/escalation-members-to-collaborator.md) (Tier 2)

**Gained through escalations:** [Edit the organization role you hold](https://ghtier.com/attack-paths/escalation-org-role-editor-edits-own-role.md) (Tier 1), [Add yourself to a team with repository access](https://ghtier.com/attack-paths/escalation-team-maintainer-to-repos.md) (Tier 1)

**Abused in incidents:** [Salesloft Drift GitHub → AWS pivot](https://ghtier.com/incidents/salesloft-drift.md)

**Strange findings:** [Branch protection does not apply to admins by default](https://ghtier.com/strange-findings/finding-admins-bypass-branch-protection.md), [Deploy keys keep working after the person leaves](https://ghtier.com/strange-findings/finding-deploy-key-outlives-user.md), [A push ruleset bypass reaches every fork](https://ghtier.com/strange-findings/finding-push-ruleset-bypass-fork-network.md), [Making a repository public turns off its push rulesets](https://ghtier.com/strange-findings/finding-making-repo-public-disables-push-rulesets.md), [Reusing a renamed repository's old name ends its redirects](https://ghtier.com/strange-findings/finding-reused-repo-name-breaks-redirects.md), [A deleted or renamed team in CODEOWNERS removes code owner review](https://ghtier.com/strange-findings/finding-codeowners-unknown-owner-drops-review.md), [Your private fork is deleted when its upstream is](https://ghtier.com/strange-findings/finding-private-fork-deleted-with-upstream.md)

**Sources:**
- [GitHub docs](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps#repository-permissions-for-administration)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
