GH-900 ยท Security and administration
Repository roles and permissions
Read, triage, write, maintain and admin repository roles and what each can do.
Key points
- From least to most access: Read (view, clone, open issues and comment), Triage (also manage issues and pull requests, no push), Write (also push and merge pull requests), Maintain (also manage repo housekeeping without destructive actions), Admin (full control, including settings, visibility, branch protection and deleting the repository).
- Each role includes the one below it.
Practice questions
Which repository role is intended for contributors who actively push code to the project?
- Read
- Triage
- Write
- Admin
Show answer
Answer: C. Write
Write allows pushing and merging pull requests. Read cannot push, Triage manages issues and PRs without pushing, and Admin is broader than needed for typical contributors.
Which actions require the Admin role on a repository?
- Changing repository visibility
- Managing branch protection rules
- Deleting the repository
- Opening an issue
- Forking the repository
Show answer
Answer: A. Changing repository visibility, B. Managing branch protection rules, C. Deleting the repository
Changing visibility, managing branch protection rules and deleting the repository are admin-level. Opening an issue is possible even with Read.
True or false: a user with the Triage role can push commits to the default branch.
Show answer
Answer: False
False. Triage manages issues, discussions and pull requests but does not include push access; that begins at Write.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
