限制对 Azure DevOps 存储库的特定分支的外部访问

huangapple go评论79阅读模式
英文:

Restrict External access to Specific branches from an Azure Devops Repository

问题

我有在我的Azure DevOps组织中有几个存储库。
我想限制外部用户访问存储库中的特定分支。
我已检查了存储库安全性以及分支安全性,但无法找到解决方法。
寻求帮助。

创建了一个组并添加了一个用户。
为包含存储库的项目提供了阅读访问权限。
取消了对存储库下所有分支的阅读访问权限。
该用户仍然能够访问存储库的所有分支。

英文:

I have several repositories in my Azure DevOps organization.
I want to Restrict external users' access to Specific branches from a repository.
I have checked repository security as well as branch security, but unable to figure a way around.
Looking for help.

Created a group and added a user.
Provided reader access to the project containing the repository.
Removed reader access to all the branches under the repository.
The user was still able to access all the branches of the repository.

答案1

得分: 1

Git权限不支持分支级别的读取限制。对于外部用户,您可以:

  1. Fork您的主要repo:Forks
  2. 拒绝外部用户访问主要repo。
英文:

Git permissions do not support read restrictions on the branch level. For external users, you may:

  1. Fork your main repo: Forks
  2. Deny access to the main repo for your external users.

答案2

得分: 0

你可以限制用户通过Azure DevOps对特定的Git分支进行修改,但无法限制他们查看个别分支并拉取它的能力。分支安全性还允许你限制一些推送、拉取请求和绕过Azure DevOps中设置的分支策略的行为。

英文:

You can restrict the ability of users to contribute to a specific Git branch and modify it through Azure DevOps, but you can't restrict their ability to see and individual branch and pull it.

Branch security also allows you to restrict some behavior on pushes, pull requests, and bypassing branch policies set up in Azure DevOps.

huangapple
  • 本文由 发表于 2023年5月18日 13:57:54
  • 转载请务必保留本文链接:https://go.coder-hub.com/76278105.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定