Admin
Why Tier 1
Tier 1 because it includes Actions: Write (repository), Administration: Write (repository), Packages: Write (repository) and 5 more.
Full access to the repository, including security, access and destructive settings.
Context-dependent: what the role is attached to (the repositories, the team's access, organization policy) decides the real tier.
Can reach a higher tier
- Actions: Write
Can reach T0 when a workflow it can start or re-run holds a credential such as an owner's token or an App private key, and passes dispatch inputs to a shell, uses them as the ref to check out, or checks out a branch by name that the caller can push to.
Inferred from: GitHub Docs: manually run a workflow, GitHub Docs: re run workflows and jobs, GitHub Docs: secure useTested 2026-10-28 in a test organization: A re-run printed the marker from the workflow file at the original commit after the branch had a newer file, so a re-run brings in new code only through what the workflow checks out. A member's re-run of a Dependabot run kept the actor dependabot[bot] and got the Dependabot secret.
- Secret scanning alerts: Read
Can reach T0 when an open alert holds an organization-wide credential, such as an owner's classic PAT or a GitHub App private key.
Documented: GitHub Docs: secret scanning
- Workflows: Write
Can reach T0 when a secret the repository's workflows can read is an organization-wide credential, such as an owner's classic PAT or a GitHub App private key.
Documented: GitHub Docs: secure use, GitHub Docs: events that trigger workflows
Available on: Every setup. Source
Permissions it includes (27)
| Tier | Permission | From |
|---|---|---|
| T1sets tier | Actions: Writerepository |
|
| T1sets tier | Administration: Writerepository |
|
| T1sets tier | Packages: Writerepository |
|
| T1sets tier | Custom properties: Writerepository |
|
| T1sets tier | Webhooks: Writerepository |
|
| T1sets tier | Secret scanning alerts: Readrepository |
|
| T1sets tier | Secrets: Writerepository |
|
| T1sets tier | Workflows: Writerepository |
|
| T2 | Variables: Writerepository |
|
| T2 | Checks: Writerepository |
|
| T2 | Codespaces: Writerepository |
|
| T2 | Contents: Writerepository |
|
| T2 | Discussions: Writerepository |
|
| T2 | Issues: Writerepository |
|
| T2 | Pages: Writerepository |
|
| T2 | Pull requests: Writerepository |
|
| T2 | Repository security advisories: Writerepository |
|
| T2 | Secret scanning alerts: Writerepository In part, counts as T2 (the full permission is T1): Writers and maintainers only see alerts for their own commits, not the list of every leaked secret. Admins see all of them (see the Admin role). |
|
| T2 | Code scanning alerts: Writerepository |
|
| T2 | Commit statuses: Writerepository |
|
| T2 | Dependabot alerts: Writerepository |
|
| T3 | Actions: Readrepository |
|
| T3 | Administration: Readrepository |
|
| T3 | Contents: Readrepository |
|
| T3 | Packages: Readrepository |
|
| T3 | Code scanning alerts: Readrepository |
|
| T3 | Dependabot alerts: Readrepository |
|
Attack paths
Techniques it enables
- Delete branches and workflow runs Delete code or cover tracks · through Actions: Write, Contents: Write
- Trigger the publish workflow from a tampered branch Poison the build or published package · through Actions: Write, Contents: Write
- Approve your own PR from a second account Submit malicious code · through Administration: Write, Pull requests: Write
- Bypass or switch off the rules Submit malicious code · through Administration: Write
- Force push or delete a protected branch Delete code or cover tracks · through Administration: Write, Contents: Write
- Post stolen data to a new public repository Steal CI secrets and tokens · through Administration: Write
- Flip private repos to public Read or expose private code · through Administration: Write
- Add a guest collaborator or new app Keep access · through Administration: Write
- Register the attacker's machine as a runner Keep access · through Administration: Write
- Publish a malicious version with a stolen token Poison the build or published package · through Packages: Write
- Have a workflow approve the PR Submit malicious code · through Workflows: Write, Pull requests: Write
- Add a workflow that dumps secrets Steal CI secrets and tokens · through Workflows: Write
- Leave a dormant workflow behind Keep access · through Workflows: Write
- Push directly, without review Submit malicious code · through Contents: Write
- Push more commits after approval Submit malicious code · through Contents: Write, Pull requests: Write
- Approve someone else's PR, then push to it Submit malicious code · through Contents: Write, Pull requests: Write
- Hide it in a change nobody can review Submit malicious code · through Contents: Write
- Use a trusted colleague's account Submit malicious code · through Contents: Write, Pull requests: Write
- Push a release tag to an unreviewed commit Point a release tag at a bad commit · through Contents: Write
- Repoint existing tags on a published Action Point a release tag at a bad commit · through Contents: Write
- Run PR code in a privileged workflow Steal CI secrets and tokens · through Contents: Write
- Read secrets from the runner Steal CI secrets and tokens · through Contents: Write
- Release through the project's own pipeline Poison the build or published package · through Contents: Write
- Plant editor or agent config that runs on open Keep access · through Contents: Write
- Get an agent to copy private code into public Read or expose private code · through Issues: Write, Contents: Read
- Trick or outlast the reviewer Submit malicious code · through Pull requests: Write
- Search the repository and its history for keys Steal CI secrets and tokens · through Contents: Read
- Clone private repos with a stolen token Read or expose private code · through Contents: Read
Escalations it starts
- Start a privileged publish job by hand: Whatever the publish job holds: package registry tokens and the right to publish. · through Actions: Write
- Switch a repository's OIDC subject to match another cloud trust: The credentials of a cloud role the repository was not meant to reach. · through Actions: Write
- Open an environment's protection rules: The environment's secrets, usually the production deploy credentials, with nobody asked to approve. · through Administration: Write
- Flip private repositories to public: Private source code exposed to everyone. · through Administration: Write
- Register a self-hosted runner: Every job routed to that runner, with the secrets those jobs receive, and a foothold that outlives the stolen token. · through Administration: Write
- Add a collaborator or guest that outlives the attack: Access that survives password resets and token revocation. · through Administration: Write
- Harvest leaked secrets from scanning alerts: Live credentials found in code and history: cloud keys, tokens and passwords, often for systems outside GitHub. · through Secret scanning alerts: Read
- Change a workflow, get its secrets: Every secret the repository's workflows can read, and cloud access through OIDC. · through Workflows: Write
- Sign provenance for your own artifact: A forged artifact that passes provenance checks, wherever consumers verify with gh attestation verify --owner or --repo alone. · through Workflows: Write
- Change a shared reusable workflow: Code running in every calling repository's workflow, with the secrets and GITHUB_TOKEN those runs get: an internal version of a compromised Action. · through Workflows: Write
- Change what an existing workflow runs, get its secrets: The secrets that workflow uses, from the repository and the organization. Environment secrets too, when a job names an environment whose branch policy lets the new branch through and that has no required reviewers. · through Contents: Write
- Send a repository_dispatch payload to a workflow with secrets: The secrets of the workflow on repository_dispatch, when it trusts the payload. · through Contents: Write
- Move release tags on a widely used Action: Code execution, with their secrets, in every repository that pins the Action by tag. · through Contents: Write
Abused in
Abilities with no matching permission
These do not affect the tier.
- Edit and delete their own comments (Only the person's own comments.)
- Have an issue assigned to them (Being assigned grants nothing.)
- Edit wikis in public repositories (Wikis have no API permission. Wiki edits do not change code or settings.)
- Edit wikis in private repositories (Wikis have no API permission. Wiki edits do not change code or settings.)
- Report abusive or spammy content (Moderation report only.)
- Act as a designated code owner for a repository (A code owner's approval can satisfy a review rule. It is a special grant made in the CODEOWNERS file, not a permission.)
- View content exclusion settings for GitHub Copilot (Viewing a setting.)