为了获取证书和配置文件,我在连接到私有(private)仓库时遇到了一些麻烦。这是在 circle-ci 作业/工作流中的快车道上运行的一些代码。我会想象这可能是因为 here
username = ENV['USERNAME']
personal_github_access_token = ENV["PERSONAL_GITHUB_ACCESS_TOKEN"]
authorization_token_str = "#{username}:#{personal_github_access_token}"
basic_authorization_token = Base64.encode64(authorization_token_str)
match(
git_basic_authorization:basic_authorization_token,
type: "development",
app_identifier: app_identifiers(),
readonly: true
)
Error
[12:08:10]: Cloning remote git repo... [12:08:10]: If cloning the repo takes too long, you can use the
clone_branch_directly
option in match. Cloning into '/var/folders/1b/gl7yt7ds26vcyr1pkgld6l040000gn/T/d20191030-1122-178s7ae'... ERROR: Repository not found. fatal: Could not read from remote repository.Please make sure you have the correct access rights and the repository exists. [12:08:10]: Exit status: 128 [12:08:10]: Error cloning certificates repo, please make sure you have read access to the repository you want to use [12:08:10]: Run the following command manually to make sure you're properly authenticated:
感谢您的评论和回答。 :)
最佳答案
我有同样的问题,这对我有用:Base64.strict_encode64
从这里找到解决方案:https://github.com/fastlane/fastlane/issues/15682
关于FaSTLane Match 无法使用个人访问 token 和用户名连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58632584/