We are using includes from project B
within project A
within the .gitlab-ci.yml
as follows:
include:
- project: pathto/projectb
file:
- "/pathto/myfile.yml"
which works well when the user has access rights to both projects but breaks with a linting error when the user has only access rights for project A
:
Found errors in your .gitlab-ci.yml:
Project `pathto/projectb` not found or access denied! Make sure any includes in the pipeline configuration are correctly defined.
Now the problem is that we want to use the include (and pipeline to succeed) also when the user who starts the pipeline has only access rights to project A
.
Are there any ways to achieve this?
Background: Project B
holds some general CI files and the user is an external developer and should have limited access only.
Thanks in advance!