如何为 GitHub 组织添加自定义用户角色?

How to add custom user roles for a GitHub organisation?

GitHub 上的组织中有两个默认用户角色:"admin" 和 "member"。

如何引入另一个角色并配置其访问权限?

无法自定义角色,也无法创建新角色。相反,您应该将人们分组并以这种方式组织权限。

此外,在每个用户的基础上,您可以……

最后,还有第三个角色你可能会感兴趣:billing manager

如果您正在使用 GHE (GitHub for Enterprise),您可以“引入另一个角色并配置其访问权限”

自 2021 年 10 月起:

Enterprise organizations can now create custom repository roles:

Organizations using GitHub Enterprise Cloud now have more granular control over the repository access permissions they can grant to users, with custom repository roles – now available in Beta.

A custom repository role is created by an organization owner, and is available across all repositories in that organization.
Each role can be given a custom name, and a description. It can be configured from a set of over 40 fine-grained permissions.
Once created, repository admins can assign a custom role to any user, team or outside collaborator in their repository.

Custom repository roles can be created, viewed, edited and deleted via the new Repository roles tab in Organization settings.

Custom repository roles are also fully supported in the GitHub REST APIs.
The Organizations API can be used to list all custom repository roles in an organization, and the existing APIs for granting repository access to individuals and teams have been extended to support custom repository roles.

To get started with custom repository roles, read the docs.