Triage
Why Tier 2
Tier 2 because it includes Discussions: Write (repository), Issues: Write (repository), Pull requests: Write (repository).
Manage issues, pull requests and discussions without write access to code.
Can reach a higher tier
- Actions: Read
Can reach T1 when the repository is private and a log or artifact holds a long-lived credential, such as a secret printed in a form masking missed or an uploaded workspace with a token file in it.
Inferred from: GitHub Docs: secure use, GitHub Docs: artifacts
- Contents: Read
Can reach T1 when the repository is private and has credentials committed in its code or history (its secret scanning alerts show whether it does).
Inferred from: GitHub Docs: secret scanning
Available on: Every setup. Source
Permissions it includes (9)
| Tier | Permission | From |
|---|---|---|
| T2sets tier | Discussions: Writerepository |
|
| T2sets tier | Issues: Writerepository |
|
| T2sets tier | Pull requests: Writerepository |
|
| T3 | Actions: Readrepository |
|
| T3 | Administration: Readrepository |
|
| T3 | Codespaces: Writerepository In part, counts as T3 (the full permission is T2): A codespace with the person's own access and no repository secrets. |
|
| T3 | Contents: Readrepository |
|
| T3 | Packages: Readrepository |
|
| T3 | Code scanning alerts: Readrepository |
|
Attack paths
Techniques it enables
- Get an agent to copy private code into public Read or expose private code · through Issues: Write, Contents: Read
- Approve your own PR from a second account Submit malicious code · through Pull requests: Write
- Have a workflow approve the PR Submit malicious code · through Pull requests: Write
- Push more commits after approval Submit malicious code · through Pull requests: Write
- Approve someone else's PR, then push to it Submit malicious code · through Pull requests: Write
- Use a trusted colleague's account Submit malicious code · through Pull requests: Write
- 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
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.)
- Report abusive or spammy content (Moderation report only.)