-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to checkout submodule #271
Comments
Is 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. |
Also if it helps for troubleshooting, I think the following script should mostly preserve the characters accurately and dump the value to disk (havent tested, may need to write an extra line ending?): jobs:
runs-on: ubuntu-latest
steps:
- run: |
echo "$MY_PRIVATE_KEY" > mykey
env:
MY_PRIVATE_KEY: ${{ secrets.SSH_KEY }} Also could try steps here to create a new SSH key. Although would need to skip passphrase step |
I re-created the ssh key several times. switch to token instead for now as I think our organization disabled ssh-key authorization (except when used locally on machines). is it probable? |
I tried this with deploy keys but these are only allowed to be deployed to one project. So you can't use it to checkout multiple projects. Not sure what the best way to do this is. |
I have the same problem. |
After 3 days, with this problem, I ended up managing to solve it, with the following steps: 1 - Create a new SSH PRIVATE KEY with ENABLE SSO and WITHOUT A PASSPHRASE SET ON THE PRIVATE KEY.
2 - Use the ssh-agent Action (Available on Actions Marketplace).
After all this process, it worked here 🚀! I hope this helps to resolve the issue of you guys too. Thanks! |
@samuelematias and you did not provide an |
Thanks! That was my problem. There doesn't seem to be any way to have a passphrase in the |
thanks for that hint. I swtiched to use HTTPS url and it works. |
Trying to checkout a repo with single submodule in it.
the workflow fails at the following
the failure message
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
The text was updated successfully, but these errors were encountered: