对私有 GitHub 存储库的只读访问权限

Read-only access to private GitHub repository

我想弄清楚,如果可以在 GitHub 上授予某人对特定私有存储库的只读访问权限,只允许查看内容,而不能协作贡献更改代码或自述文件标记

这仅适用于由组织管理的私有存储库。

如果您的仓库是组织仓库,您可以访问:

然后您可以添加协作者并将他们的权限级别设置为:

  • Read: Recommended for non-code contributors who want to view or discuss your project
  • Triage: Recommended for contributors who need to proactively manage issues and pull requests without write access
  • Write: Recommended for contributors who actively push to your project
  • Maintain: Recommended for project managers who need to manage the repository without access to sensitive or destructive actions
  • Admin: Recommended for people who need full access to the project, including sensitive and destructive actions like managing security or deleting a repository