Skip to content

Add TEMPLATE_REGISTRY_HOST to SAST templates

What does this MR do and why?

Related to issue #353815

Now we have a set of templates in jh/lib/gitlab/ci/templates directory , and these templates are almost identical to those in the lib/gitlab/ci/templates directory, only different point is jh directory template, The url host of image is registry.gitlab.cn.

So we represent all registry.gitlab.com in the SAST template using the environment variable TEMPLATE_REGISTRY_HOST. Then we can overwrite the environment variable TEMPLATE_REGISTRY_HOST with registry.gitlab.cn on the JH side so that we don't have to keep two different sets of templates.

/cc @prajnamas

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Zehua Zhang

Merge request reports