Ensure that scan-policies stage is added after .pre
What does this MR do and why?
This MR fixes a bug when scan-policies
stage was not added properly after .pre
stage.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Create new project with
.gitlab-ci.yml
withstages: [.pre]
and job using.pre
stage. - Create new Scan Execution Policy to run on every branch enforcing
container-scanning
scan. - Run pipeline for default branch.
- See that job for
container-scanning
is enforced in stage after.pre
.
Related to #443593 (closed)