Cloning from internal repo failed, Cannot read username https://example.com/

HI All,

According to the Docs of Gitlab a git push runs with the user rights of the initiator. At the moment we cannot clone internal projects from our own GitLab server it fails with, cannot read username.

What other steps do we have to take to solve this issue?

We are a member of the projects that gitlab runner tries to clone, the project is set to internal with the standard defaults.

We also tried with SSH but then we encounter host key validation errors.

We prefer not to use Anoymous.

Any help will be appreciated.

Answer can be found at https://docs.gitlab.com/ee/ci/ssh_keys/