-
Notifications
You must be signed in to change notification settings - Fork 259
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
Windows runner: ssh cannot resolve submodule hostname #148
Comments
I've dug a bit deeper and it seems there is something going on with the home path.
but it appears that SSH is expecting it somewhere else when we clone the submodule:
|
Finally found the culprit: https://github.com/actions/checkout/blob/v3.1.0/src/git-auth-helper.ts#L122 checkout is overriding $HOME before doing the checkout. It's copying |
For reference, I've quickly hacked the action to change the system-wide config on windows: https://github.com/audricschiltknecht/ssh-agent/tree/fix-path-windows This is not ideal as I don't know what happens with the config put there at the end of the action or even if for self-hosted runners this will work. |
I have encountered a bug on Windows that seems similar to this issue, but my workaround is different. Specifically, I'm able to resolve the bug by setting |
Hello,
I've setup an action for a private repository with (private) submodules. I'm using the deploy keys with comments as per the docs.
Everything works fine on the
ubuntu-latest
runner but when I switch towindows-latest
it seems thatssh
is not using the proper hostname and instead use the one including the keyname, resulting in an obvious "Name not known" error:This seems a bit weird as I haven't seen anyone mentioning that problem in the issues, so I'm wondering if it could be a config problem instead?
Thanks!
The text was updated successfully, but these errors were encountered: