Clone different gitlab repos during CI stage

Would like to clone a gitlab repo in a different gitlab instance

I have multiple selfmanaged gitlab repos
I would like to build a binary using 2 independent repos.
What is the recommended way for this ?
I have a single yml file that will pull in the other repo as needed.

Is this the recommended way :

git clone https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.com/<user>/<mydependentrepo>.git