Giving CI Runner access to seperate project private submodule

When attempting to use a sub module within my runner I am greeted with

"Host key verification failed.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists."

How do I give my runner access to a separate private project? (or should the runner already have access?)

In my .yml I have stated:


  • git submodule sync --recursive
  • git submodule update --init --recursive
    • my script

What gives?

(edit - the project is still part of the same gitlab domain - but a different user has created it.)


I have the same issue. I have a private repo which is imported as submodule in another project. The CI failed to get the submodule, since it doesn’t have the required rights. Is there a fix for this?


I have a similar configuration and below are the error messages I see:
Cloning into ‘<REPO_NAME>’…
fatal: could not read Username for ‘’: No such device or address

Could there be a way to use github’s Personal Access Tokens somewhere in gitlab in config to enable automated cloning?