Skip to content

Add $CI_PROJECT_PATH to include:component

Some GitLab Components use $CI_PROJECT_PATH at gitlab-ci.yml include:component

https://gitlab.com/components/sast/-/blob/main/.gitlab-ci.yml#L2

include:
  - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/sast@$CI_COMMIT_SHA

https://gitlab.com/components/container-scanning/-/blob/main/.gitlab-ci.yml?ref_type=heads#L8

include:
  - component: $CI_SERVER_FQDN/$CI_PROJECT_PATH/container-scanning@$CI_COMMIT_SHA

In this way, I can create a Subgroup in my GitLab self-managed instance for hosting the GitLab.com components. Without the variable $CI_PROJECT_PATH, I need to host the GitLab.com components at the root of my GitLab self-managed instance.

Can you add $CI_PROJECT_PATH to all include:component of Kaniko?

Edited by Gerência Qualidade