Lena owns a private repository in her personal GitHub account. The repository is not part of any GitHub organization. She plans to invite a contractor as a collaborator. Lena wants the contractor only to review the code.
What access will the contractor have to the repository after accepting the collaborator invitation?
A personal GitHub account has only two roles: the account owner and collaborators. When the owner invites someone to a private repository, the collaborator gets both read and write permissions, so they can pull and push. Read-only permission cannot be assigned to collaborators on private repositories under a personal account. The contractor will therefore have more access than Lena intends.
- Not correct: Admin access, so the contractor can also invite collaborators. The repository owner can invite collaborators. A collaborator receives read and write permissions, not owner-level control.
- Not correct: Read-only access, so the contractor can pull but not push. For private repositories owned by a personal account, read-only permission cannot be assigned to collaborators, so the contractor will not be limited to pulling.
- Correct: Read and write access, so the contractor can pull and push. A collaborator invitation on a personal account grants combined read and write permissions, which allow both pull and push operations.
- Not correct: Read-only or write access, as chosen by Lena in the invitation. A personal account offers only the owner and collaborator roles, and a collaborator on a private repository cannot be given read-only permission, so Lena has no such choice.