01.GitHub企业账号体系搭建

清夏晚风

企业账号体系

组织架构设计

1
2
3
4
5
6
graph TD
A[Enterprise] --> B[Organization]
B --> C[Team: Frontend]
B --> D[Team: Backend]
C --> E[Repository: web-app]
D --> F[Repository: api-service]

SAML SSO配置

1
2
3
4
5
6
7
8
9
10
# .github/saml-config.yml
idp:
sso_url: https://sso.example.com/saml2
certificate: |
-----BEGIN CERTIFICATE-----
MIID...
-----END CERTIFICATE-----
attribute_mapping:
username: 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name'
teams: 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role'

团队权限模板

1
2
3
4
5
6
7
8
9
10
11
{
"repo_access": {
"admin": ["tech-leads"],
"push": ["senior-devs"],
"pull": ["interns"]
},
"branch_protection": {
"require_code_owner_reviews": true,
"required_approving_review_count": 2
}
}
  • Title: 01.GitHub企业账号体系搭建
  • Author: 清夏晚风
  • Created at : 2026-01-13 16:48:23
  • Updated at : 2026-01-13 16:48:23
  • Link: https://blog.kimikkorow.eu.org/版本控制管理/Github/01.GitHub企业账号体系搭建/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
01.GitHub企业账号体系搭建