actions / actions/checkout

Failed to checkout submodule

Open
#271 9 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.9k
Forks
2.8k
PR merge metrics
No merged PRs in 30d

Description

Trying to checkout a repo with single submodule in it.

  • both repos are part of the same organization
  • both repos are private
  • organization requires sso and ssh keys to access repos

the workflow fails at the following

steps:
  - name: Checkout
     uses: actions/checkout@v2
     with:
       ref: develop
       ssh-key: ${{ secrets.SSH_KEY }}
       submodules: true 

the failure message

Load key "/home/runner/work/_temp/dc2e5ba9-c8ee-424c-a39b-a15919ec6f72": invalid format
git@github.com: Permission denied (publickey).
##[error]fatal: Could not read from remote repository.

Not sure if I miss coded the flow, but it's unclear why I'm not able to access the remote repo with the SSH_KEY

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the actions/checkout@v2 workflow configuration and its ssh-key and submodules inputs, then reproduce the private-repository checkout using the provided failure message. Compare the key handling and authentication path for the organization’s SSO-protected repositories; done means the workflow checks out the repository and its private submodule successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github-actions
Domain
ci-cd, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.