Skip to content

Enforce SEP jobs when `pipeline_source` is a string

What does this MR do and why?

Enforce SEP jobs when pipeline_source is a string.

This fixes a case when SEP jobs are not enforced when pipeline is run manually via UI and the project doesn't have a CI configuration.

It was likely caused by !174577 (merged) which changed the pipeline source when triggering the pipeline from :web to 'web'.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

  1. Create a project
  2. Create a SEP with secret_detection to run on all branches
  3. Go to the project /pipelines/new and run a pipeline
  4. Verify that pipeline runs with secret-detection-0 job

Related to #517978 (closed)

Edited by Martin Cavoj

Merge request reports

Loading