Set `CS_DEFAULT_BRANCH_IMAGE` in Auto DevOps template
What does this MR do and why?
Describe in detail what your merge request does and why.
By default, container scanning assumes that the image naming convention
stores any branch-specific identifiers in the image tag rather than the
image name. Auto DevOps will use a default naming convention of
$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
, where the ref
slug typically refers to the branch name. This means that
vulnerabilities are not correctly correlated across branches. This
change adds CS_DEFAULT_BRANCH_IMAGE
to the Auto DevOps template, which
allows images built with the default values to be correctly correlated
across branches. If the default values are changed, then
CS_DEFAULT_BRANCH_IMAGE
will need to be changed as well.
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.
-
I have evaluated the MR acceptance checklist for this MR.