02.Gitee仓库权限管理规范

清夏晚风

仓库权限管理

三级权限模型

角色 代码推送 MR审批 敏感操作 权限有效期
观察者 × × × 永久
开发者 × × 180天
维护者 90天

分支保护规则

1
2
3
4
5
6
7
# API设置示例
PUT /repos/{owner}/{repo}/branches/{branch}/protection
{
"push_whitelist": ["senior_dev1", "senior_dev2"],
"merge_whitelist_teams": ["core-team"],
"status_check_contexts": ["ci/build", "security-scan"]
}

IP白名单配置

1
2
3
[security]
allowed_ips = 192.168.1.0/24, 10.10.0.0/16
api_rate_limit = 1000/hour
  • Title: 02.Gitee仓库权限管理规范
  • Author: 清夏晚风
  • Created at : 2026-01-13 16:48:23
  • Updated at : 2026-01-13 16:48:23
  • Link: https://blog.kimikkorow.eu.org/版本控制管理/Gitee/02.Gitee仓库权限管理规范/
  • License: This work is licensed under CC BY-NC-SA 4.0.
On this page
02.Gitee仓库权限管理规范