Trying to clone a private gitlab repository without using ssh with the runners token as recommended here.
Unfortunately running (replaced with real values) git clone https://gitlab-ci-token:<private token>@git.example.com/myuser/myrepo.git
fails with:
remote: HTTP Basic: Access denied
fatal: Authentication failed for 'https://gitlab-ci-token:<private token>@git.example.com/myuser/myrepo.git/'
I’ve read that the CI feature has new build permissions.
There doesn’t seem to be an alternative command to do this, or is there? How can I clone a private gitlab repository using a token?