Skip to content

Update yaml preview for CI/CD code action

Artur Fedorov requested to merge 428507-policies-custom-yaml into master

What does this MR do and why?

This MR updated yaml preview

After providing custom yaml via editor or loaded file yaml preview is updated

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 UI
Updating yaml preview yaml mode.mov
Existing policy existing.mov

How to set up and validate locally

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

  1. Enable feature flag

    Feature.enable(:compliance_pipeline_in_policies)
  2. Go to Project/Group -> Secure -> Policies -> New Policy -> New scan execution policy

  3. Add new CI/CD code action

  4. Either type in yaml or upload yaml file

  5. Switch between yaml/rule mode, make sure state is preserved

Related to #428507 (closed)

Edited by Artur Fedorov

Merge request reports