Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

CI failure at "Checkout code" step - fatal: Could not read from remote repository.

未关闭
#1,012 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
git, github
领域
ci-cd

调研方向

从链接的 CircleCI pipeline 和 issue 中包含的 checkout shell 逻辑开始。将配置的 CIRCLE_REPOSITORY_URL 和 SSH 设置与记录的公钥失败信息进行比较,然后验证 repository checkout 行为。当 FirefoxColor repository 的 Checkout 代码步骤成功完成时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

https://app.circleci.com/pipelines/github/mozilla/FirefoxColor/1087/workflows/8f5362d6-3b2b-498f-8fab-e4ba07ea3820/jobs/2787

Here is the end of the log:

Using SSH Config Dir '/home/circleci/.ssh'
git version 2.34.1
Cloning git repository
Cloning into '.'...
Warning: Permanently added the ECDSA host key for IP address '140.82.113.4' to the list of known hosts.
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

exit status 128

CircleCI received exit code 128

For the record, [email protected]:mozilla/FirefoxColor.git and as part of the checkout the following logic is run:

export GIT_SSH_COMMAND='ssh -i "$SSH_CONFIG_DIR/id_rsa" -o UserKnownHostsFile="$SSH_CONFIG_DIR/known_hosts"'

# use git+ssh instead of https
git config --global url."ssh://[email protected]".insteadOf "https://github.com" || true
git config --global gc.auto 0 || true

if [ -e '/home/circleci/FirefoxColor/.git' ] ; then
  echo 'Fetching into existing repository'
  existing_repo='true'
  cd '/home/circleci/FirefoxColor'
  git remote set-url origin "$CIRCLE_REPOSITORY_URL" || true
else
  echo 'Cloning git repository'
  existing_repo='false'
  mkdir -p '/home/circleci/FirefoxColor'
  cd '/home/circleci/FirefoxColor'
  git clone --no-checkout "$CIRCLE_REPOSITORY_URL" .
fi
主要语言
JavaScript
星标
506
派生
100
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

mozilla/FirefoxColor 的其他 Issue

查看 mozilla/FirefoxColor 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。