title: GitLab CI Read File from Other Repository
body: <p>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.</p>
  
  <p>Right now, I'm just cloning the entire other repository to access that <code>VERSION</code> file. I tried using <code>git archive</code> to pull only the <code>VERSION</code> file but the <code>CI_JOB_TOKEN</code> doesn't work with SSH access remotes (from my testing), and doing a <code>curl</code> to the raw file path doesn't work because its on a private GitLab instance.</p>
  
  <p>Is there a better way to do this?</p>