Bitzu

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.

Source: https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-repository-roles/repository-roles-for-an-organization

Practice questions

Single choice

Which repository role is intended for contributors who actively push code to the project?

  1. Read
  2. Triage
  3. Write
  4. 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.

Select all that apply

Which actions require the Admin role on a repository?

  1. Changing repository visibility
  2. Managing branch protection rules
  3. Deleting the repository
  4. Opening an issue
  5. 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

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.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module