question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to checkout submodule

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:5
  • Comments:8

github_iconTop GitHub Comments

1reaction
retorquerecommented, Dec 3, 2020

@samuelematias and you did not provide an ssh-key to the checkout action? Wouldn’t that have it use an https url for checkout?

1reaction
ericsciplecommented, Jun 4, 2020

Load key “/home/runner/work/_temp/dc2e5ba9-c8ee-424c-a39b-a15919ec6f72”: invalid format

Is secrets.SSH_KEY the private key? Is it protected by a passphrase?

For that error, saw some interesting troubleshooting here throughout the various answers/comments. Especially the ones about different versions of OpenSSL and “Perhaps it has accidentally enabled FIPS mode and refuses any algorithms except those part of its original FIPS validation”. It makes me wonder whether you are using a job container (may have an insufficient version OpenSSL), if so have you tried on the host machine instead (e.g. runs-on: ubuntu-latest)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to checkout git submodule path - Stack Overflow
1) Locate the repository, and the submodule ls -la .git/modules rm -f .git/modules/<module-with-issue> · 2) Remove the older local sub-module configurations
Read more >
Checkout of Git repository with submodules failed in Bamboo
Go to Administration / System information, scroll down to section Environment Variables and check if HOME variable is defined · If not, create...
Read more >
Can't checkout a submodule branch anymore (#28883) - GitLab
The git pull in the main branch can update the submodule OK. The git checkout dev doesn't work anymore : $ git checkout...
Read more >
TF401019: Git submodule, same project, checkout fails on ...
TF401019: Git submodule, same project, checkout fails on both self and ms hosted pipelines. ... I am trying to add a new submodule...
Read more >
Git Submodules: Error When Switching Branches
If you've received the error “The following untracked working tree files would be overwritten by checkout“ you are likely using git ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found