← All roles
Repository role·One repository owned by a personal account
Collaborator on a personal repository
Tier 1 · HighData
Why Tier 1
Tier 1 because it includes Packages: Write (repository), Workflows: Write (repository).
Someone the owner of a personal repository has invited. There is only one level: collaborators can pull and push, manage issues and pull requests, and publish packages.
Can reach a higher tier
- 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: Free, Team, Enterprise Cloud, Server. Source
Permissions it includes (5)
| Tier | Permission | From |
|---|---|---|
| T1sets tier | Packages: Writerepository |
|
| T1sets tier | Workflows: Writerepository |
|
| T2 | Contents: Writerepository |
|
| T2 | Issues: Writerepository |
|
| T2 | Pull requests: Writerepository |
|
Attack paths
Techniques it enables
- 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
- Force push or delete a protected branch Delete code or cover tracks · through Contents: Write
- Delete branches and workflow runs Delete code or cover tracks · through Contents: 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
- Trigger the publish workflow from a tampered branch Poison the build or published package · 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
- Approve your own PR from a second account Submit malicious code · through Pull requests: Write
- Trick or outlast the reviewer Submit malicious code · through Pull requests: Write
Escalations it starts
- 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
Megalodon: mass backdooring of CI workflowsGhostActiontj-actions/changed-files supply-chain compromiseSalesloft Drift GitHub → AWS pivotUltralytics build cache poisoningChainDrop: a hijacked maintainer account publishes through trusted publishingTeamPCP tag force-overwrite campaignprt-scan: automated pull_request_target attacksCVE-2026-3854: push-option metadata RCEhackerbot-claw autonomous agent RCENx "s1ngularity"ArtiPACKED artifact token leakageSelf-hosted runner takeovers (PyTorch and others)"Pwn requests": pull_request_target & workflow_runGitHub MCP / agentic token breadth