GitLab: "You are not allowed to download code from this project."
A pipeline can fail with You are not allowed to download code from this project. when a GitLab administrator runs a protected manual job in a private project. A job normally clones the project when it starts, with the permissions of the user who runs it, and administrators are no exception: they must be direct members of a private project to clone its source (GitLab docs: job troubleshooting, checked November 19, 2026).
To run the protected manual job
- Add the administrator as a direct member of the private project, with any role. Direct means a member of the project itself.
- Or impersonate a user who is a direct member of the project (the Admin area has user impersonation).
GitLab keeps an open issue about changing this behavior.
To see the failed job and its log in the IDE: Pipelines and Jobs Inbox for GitLab CI, a plugin for JetBrains IDEs, shows next to a failed job its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE.
Two other messages that look like it
You are not authorized to run this manual job: the Run button is disabled because of a protected environment or an outdated deployment job.Insufficient permissions to set pipeline variables: the user may not set variables for the run.
GitLab pipelines in IntelliJ IDEA
Pipelines and Jobs Inbox for GitLab CI, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, shows a failed job with its status, how long it ran and the message GitLab gives for the failure, and opens the job's log in a console viewer at the bottom of the IDE, searchable, following a running job as it writes. You can retry the job from the IDE (Pro). Reading is free; retrying, cancelling and running are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GITLAB is a trademark of GitLab Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with or endorsed by GitLab Inc. or JetBrains.
More: GitLab "You are not authorized to run this manual job" · GitLab "Insufficient permissions to set pipeline variables" · GitLab pipeline or job refused (400, 403, 409, 429) · GitLab job log refused or empty