Skip to content

Changing pipeline execution policy external CI file schema

What does this MR do and why?

This MR changes schema for external file path

Yaml structure is changed and now
using include structure for pipeline
execution policy ci action

New schema for referencing external file

  1. Instead of ci_configuration_path, new structure is used:

    ci_configuration:
       include:
  2. Since this feature is experimental, backward compatibility is not a concern

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

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Description Video
External file path Include structure

How to set up and validate locally

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

Enable feature flag:

Feature.enable(:compliance_pipeline_in_policies)
  1. Go to Settings -> General
  2. Toggle the Permissions and group features section
  3. Enable Run customized CI YAML file as security policy actions
  4. Go to Secure -> Policies
  5. Select New policy
  6. Select Scan execution policy
  7. Select Add new action
  8. Select Run CI/CD code
  9. Select Linked existing CI file, select options
  10. Check schema in yaml previewer

Related to #438794 (closed)

Edited by Artur Fedorov

Merge request reports

Loading