In the setup that I have, there are two repositories in GitLab, one of which has a version file that the other needs for naming the artifact produced by its CI/CD pipeline.
Right now, I'm just cloning the entire other repository to access that VERSION file. I tried using git archive to pull only the VERSION file but the CI_JOB_TOKEN doesn't work with SSH access remotes (from my testing), and doing a curl to the raw file path doesn't work because its on a private GitLab instance.
Is there a better way to do this?

