2 Star 0 Fork 0

mirrors_microsoft/Git-Credential-Manager-for-Windows

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Automation.md 2.34 KB
一键复制 编辑 原始数据 按行查看 历史

Build Agents and Automation

Build agents, and other automation, often require specialized setup and configuration. While there is detailed documentation on GCM configuration options, below are common recommendations for settings agents often require to operate.

Note: SSH is often a better choice for automated system because requiring interactivity is a non-default option, and SSH is known to be secure and reliable.

Recommendations for Azure DevOps Build Services

The majority of build definitions will work with a single repository, or at least a set of repositories which all have the same authentication requirements. In this case, it is generally better to rely on Azure DevOps Build Variables; specifically the $(System.AccessToken) build process OAuth token. To enable scripts to use the build process OAuth token, go to the Options tab of the build definition and select Allow Scripts to Access OAuth Token. For more information, read Azure DevOps: Use the OAuth token to access the REST API.

Recommendations for Other Build Services

Build agents cannot manage modal dialogs, therefore we recommended the following configuration.

git config --global credential.interactive never

Build agents often need to minimize the amount of network traffic they generate.

To avoid Microsoft Account vs. Azure Active Directory look-up against an Azure DevOps account use...

... for Azure Directory backed authentication:

git config --global credential.authority Azure

... for Microsoft Account backed authentication:

git config --global credential.authority Microsoft

... to restrict the lifetime of VSTS personal access tokens:

git config --global credential.tokenDuration 1

If your agents rely on an on premise instance of Team Foundation Server and Windows Domain Authentication, use:

git config --global credential.authority NTLM

To avoid unnecessary service account credential validation, when relying on Microsoft Account or Azure Active Directory use:

git config --global credential.validate false
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_microsoft/Git-Credential-Manager-for-Windows.git
git@gitee.com:mirrors_microsoft/Git-Credential-Manager-for-Windows.git
mirrors_microsoft
Git-Credential-Manager-for-Windows
Git-Credential-Manager-for-Windows
master

搜索帮助