FaSTLane Match 无法使用个人访问 token 和用户名连接

标签 fastlane circleci-2.0 fastlane-match

为了获取证书和配置文件,我在连接到私有(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/

相关文章:

faSTLane - bitrise 在 Applications/Xcode-beta.app/Contents/Developer 找不到传输器

ios - 如何使用 ruby​​ 读取 .xcconfig 文件常量以将它们用作 FaSTLane channel 变量?

ruby-on-rails - 为什么 Selenium 在 CircleCI 2.0 版本中使用了不正确的根目录?

postgresql - CircleCI 2.0 中的多个 Postgres 数据库

faSTLane - 如何手动将现有的配置文件和证书添加到 faSTLane 匹配?

ios - FaSTLane 匹配 build adhoc 和 appstore

ios - FaSTLane 注释掉字符串中的引号

ios - 未找到签名证书 “iOS Development” - 使用 bitrise/FaSTLane 匹配构建应用程序版本

python - 如何在 CircleCI 2.0 中显式添加项目到 Python 路径?

testflight - faSTLane 包问题 :Couldn't find app 'com.xxx.xx' on the account of 'xxx@com.cn' on iTunes Connect