Failed to checkout submodule
See original GitHub issueTrying 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:
- Created 3 years ago
- Reactions:5
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@samuelematias and you did not provide an
ssh-key
to the checkout action? Wouldn’t that have it use an https url for checkout?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
)?