'Gitlab include yml - access denied
I have two (actually 4) projects within GitLab, who are also within the same group.
TimerApp should include .yml files from Pipelines
One project should just hold different .yml files, as kind of pipeline templates.
However, including the pipeline within the second project leads to "lint" problems. It appears, that the access is denied.
As you can see, either the file is not found or access is denied
Unfortunately, I have no idea how to solve that. Especially, because two projects within the same group shouldn't have this issue, right?
The obvious problem could have been, that the file was just not there. However, if I try the url etc. it works fine.
Solution 1:[1]
As described here, you have to use the project name only, not the whole URL.
include:
- project: 't9224/pipelines'
file: '.gitlab-ci.pages.yml'
Solution 2:[2]
project: should just include the namespace and project, not the entire URL.
include:
- project: mynamespace/myproject
# ...
As long as your user account has membership to the specified group or project, there should be no access denied issues.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | ErikMD |
| Solution 2 | sytech |
