我有点麻烦,连接到一个私人回购,以获得证书和个人资料。下面是在循环-ci作业/工作流中的快速车道上运行的一些代码。我会想象这是可能的,因为这里
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
)错误 12:08:10:克隆远程git回购.12:08:10:如果克隆回购需要太长时间,您可以在match中使用
clone_branch_directly选项。克隆入'/var/folders/1b/gl7yt7ds26vcyr1pkgld6l040000gn/T/d20191030-1122-178s7ae'...错误:未找到存储库。致命:无法从远程存储库读取。 请确保您有正确的访问权限和存储库存在。12:08:10:退出状态: 128 12:08:10:错误克隆证书回购,请确保您已经读取了要使用的存储库的访问权限,使用12:08:10:手动运行以下命令以确保您已通过正确的身份验证:
谢谢你的评论和回答。:)
发布于 2020-10-28 18:13:24
如果您使用的是OAuth令牌,请确保在https上使用git,而不是ssh。
看看你的Matchfile,它应该是git_url("https://github.com/<user>/<repo>.git")而不是git_url("git@github.com:<user>/<repo>.git")
如果需要在ssh上使用它,则需要配置ssh密钥。
发布于 2021-08-27 22:39:53
在github更改之后,这对我起了作用,迫使我使用github个人访问令牌。我把我的代码推到testing进行beta测试。
git_url("https://github.com/{github_username}/git_repo_name.git")
match(
git_basic_authorization: Base64.strict_encode64("github_username:github_personal_token"),
type: "appstore"
)发布于 2020-01-21 05:05:18
我也有同样的问题,这也适用于我:Base64.strict_encode64
https://stackoverflow.com/questions/58632584
复制相似问题