fetch the single file through the API. Create a personal access token with read access, add it as a masked CI/CD variable like GITLAB_TOKEN, and in the job script request the raw file endpoint: the projects API path for repository files with the file path URL-encoded and a ref param for the branch. Pass the token in the PRIVATE-TOKEN header, never in the URL. This beats cloning the other repo because it is one small request, it needs no SSH keys in the runner, and the ref param pins exactly which branch or tag the version comes from. Rotate the token like any credential and scope it to read-only on the projects that need it.