Clone a private repo in the same Group, only during CI

We have two private repos:

repo-a depends on repo-depended. Only during CI job for repo-a, we like to get repo-depended’s code. What’s the good way to achieve this?

Some more requirements:

  • Using submodule is not an option for us.
  • Providing ssh key is possible if there’s a way to generate Group-wide ssh key (i.e. no key registered for an individual account).