GitLab Project Access Token “You are not allowed to download code from this project.”
We ran into an issue where a GitLab Project Access Token would not work when trying to clone a repository it had permission to access. It reported this error:
You are not allowed to download code from this project.
It turns out that Project Access Tokens in a private repository will not work if you select “Guest” when creating the token. Using “Reporter” or another higher access level solves the issue.
If that does not solve the problem, this Stack Overflow thread details several other possible causes.
Need help with Linux or FreeBSD infrastructure?
A-Team Systems provides engineer-led support for production Linux and FreeBSD environments, including troubleshooting, operational oversight, and ongoing infrastructure management.
Contact A-Team Systems