gpt4 book ai didi

github - 使用 2FA 为 Github CI 配置 Jenkins

转载 作者:行者123 更新时间:2023-12-04 11:14:39 25 4
gpt4 key购买 nike

我的 Github 帐户启用了两因素授权 (2fa)。我想将 Jenkins 与我的一些私有(private)存储库集成,但我无法授权它们,因为我启用了 2fa。请注意,这是一个多分支管道项目。

任何想法如何配置 Jenkins 以连接私有(private)存储库而不创建未启用 2fa 的虚拟帐户?
enter image description here

最佳答案

谁会想到点击帮助按钮?

Credentials used to scan branches and pull requests, check out sources and mark commit statuses.

If none is given, only the public repositories will be scanned, and commit status will not be set on GitHub.

If your organization contains private repositories, then you need to specify a credential from an user who have access to those repositories.
This is done by creating a "username with password" credential where the password is GitHub personal access tokens. The necessary scope is "repo"

即使用 Github personal access token作为您的 Jenkins 凭据使用用户名/密码时的密码。

关于github - 使用 2FA 为 Github CI 配置 Jenkins,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43746923/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com