Cloning private submodules may encounter the below error. This happens when a submodules uses
git+ssh and requires a private rsa key for authorization.
Warning: Permanently added 'github.com,126.96.36.199' (RSA) to the list of known hosts. ERROR: Repository not found. fatal: Could not read from remote repository.
Example submodule configuration using
[submodule "hello-world"] path = hello-world url = firstname.lastname@example.org:octocat/hello-world.git
This can be mitigated by overriding the submodule url to use
pipeline: clone: recursive: true + submodule_override: + hello-world: https://github.com/octocat/hello-world.git
The above example overrides the submodule url to force
git+https. This configuration instructs git to use authorization credentials stored in an automatically created