Skip to content

Add CI variable for repository languages

rossfuhrman requested to merge rf-ci-project-langs-var into master

What does this MR do?

This work is being done in support of https://gitlab.com/gitlab-org/gitlab-ee/issues/10796

We need to expose the $CI_PROJECT_REPOSITORY_LANGUAGES so that we can use it to determine which Secure analyzers/scanners should be ran.

https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/16487 leverages this to determine which SAST analyzers need to run for a given repository. This variable could also be leveraged for Dependency Scanning as well.

There is a lot of discussion in the Epic this belongs to, but I think &971 (comment 213541000) and &971 (comment 216002723) are a good summary for where we are at now.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Performance and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Michael Kozono

Merge request reports