【发布时间】:2019-09-09 19:36:39
【问题描述】:
我正在尝试通过运行在本地运行 CircleCI 测试作业
circleci local execute --job test
但是,我收到以下错误消息:
go: github.com/some/repo@v0.0.0-20180921204022-800easdf7ec: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/52f8e69c46f5a1cc77e6bf: exit status 128:
fatal: could not read Username for 'https://github.com': terminal prompts disabled
我基本上想为本地 CircleCI 环境做相当于 https://circleci.com/docs/2.0/add-ssh-key/ 的操作,但是没有办法去项目设置 -> 签出 SSH 密钥,如该文档中所述。我已阅读https://circleci.com/docs/2.0/local-cli/#run-a-job-in-a-container-on-your-machine 的文档,但无法找到执行此操作的方法。
知道如何在本地 CircleCI 环境中查看私有 Github 存储库中的代码吗?
【问题讨论】:
标签: ssh circleci circleci-2.0