Azure DevOps默认权限 [英] Azure DevOps default permissions
问题描述
在Azure DevOps中,git repos的分支安全性将所有Azure DevOps组的强制推送"属性默认设置为未设置".这实际上会拒绝该许可.
In Azure DevOps, branch security for git repos defaults the 'Force push' property to 'Not set' for all Azure DevOps Groups. This effectively denies this permission.
我们在我工作的地方遵循gitflow,通常会明确拒绝持久分支Master和Develop的此权限;但是,对于功能分支,我希望将此默认值设置为允许",这样就不必涉及管理员.是否有办法将所有分支机构的Azure DevOps贡献者"组的强制推送"默认设置为允许",除非明确设置为拒绝"?
We're following gitflow where I work and would generally deny this permission explicitly for persistent branches, Master and Develop; however, for feature branches I would rather this default to 'Allow', so that an admin doesn't have to be involved. Is there a way to default 'Force push' to 'Allow' for the Azure DevOps 'contributor' group for all branches, unless explicitly set to 'Deny'?
干杯.
推荐答案
您需要先了解Azure Repos的证券
You need to understand the Securities of Azure Repos first
有两种证券
- 回购级别
- 分支级别(默认-继承自回购级别)- 您还可以更改此
默认情况下,在Azure Repos(Git)中,重写和销毁历史记录(强制推送)在 Repo级别上为Not Set
.
Default, in Azure Repos (Git), Rewrite and destroy history (force push) is Not Set
at Repo Level.
这是您创建的每个新分支的Inherited(默认情况下).因此,对于在该Repo中创建的每个新分支,您将具有Not set
的值.
This is the Inherited(by default) for every new branch you create. So you will have the value as Not set
for every new branch you create with-in that Repo.
您的要求将不会直接执行,因为默认情况下,分支机构的所有证券都是从回购级别继承的.
Your requirement will not be implemented directly since all the securities for a branch are by default inherited from the repo level.
- 在回购级别设置强制推送-> 允许
- 默认情况下,这将继承到您存储库下的所有分支.
- 到目前为止,对于母版,Develop,QA(您需要管理/安全),将此设置更改为 Deny (否).
- At repo level Set the Force Push - > Allow
- This will be default inherited to all branches under your repo.
- Change this Setting to Deny for the master, Develop, QA so far (which you need to administrate/secure)
请谨慎使用此权限,因为您要在REPO级别将此权限设置为允许非常危险
BE CAREFUL ON THIS PERMISSION SINCE YOU ARE SETTING THIS TO ALLOW AT REPO LEVEL IS VERY DANGEROUS
这篇关于Azure DevOps默认权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!