Skip to content

Windows runner: ssh cannot resolve submodule hostname #148

@audricschiltknecht

Description

@audricschiltknecht

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 to windows-latest it seems that ssh is not using the proper hostname and instead use the one including the keyname, resulting in an obvious "Name not known" error:

   17:58:32.064475 run-command.c:655       trace: run_command: unset GIT_CONFIG_PARAMETERS GIT_DIR; GIT_PROTOCOL=version=2 ssh -o SendEnv=GIT_PROTOCOL git@key-<SHA>.github.com 'git-upload-pack '\''<ORG>/<SUBMODULE>'\'''
  Cloning into 'D:/a/<REPO>/<REPO>/<SUBMODULE>'...
  ssh: Could not resolve hostname key-<SHA>.github.com: Name or service not known
  Error: fatal: Could not read from remote repository.

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions