Skip to content

Fix PEP when SEC is available

Andy Schoenen requested to merge fix-pep-when-sep-is-enabled into master

What does this MR do and why?

Fix Pipeline execution policy error: job names must be unique error by ignoring scan execution policies when pipeline execution policy is available.

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.

Screenshots or screen recordings

Before
Screenshot_2024-07-18_at_11.08.21

How to set up and validate locally

  1. Create a scan execution policy enforcing a security scan such as SAST.
  2. Create a pipeline execution policy creating any job, such as basic job with an echo script.
  3. Create a project for that the policies apply with a .gitlab-ci.yml file.
  4. Verify that pipeline starts and there's no failure in given projects.

See example group: https://gitlab.com/gitlab-org/govern/security-policies/andys-test-group/reproduce-issue-473112

Related issue: #473112 (closed)

Edited by Martin Čavoj

Merge request reports

Loading