Skip to content

Extends file path selector for scan execution policy action

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

What does this MR do and why?

This MR extends file path selector

File path selector for scan execution policy is extended with ref selector and projects dropdown

Screenshots or screen recordings

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

Description UI
Initial state initial selection.mov
Switching between modes switch.mov
Existing policy existing policy.mov

How to set up and validate locally

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

 Feature.enable(:compliance_pipeline_in_policies)
  1. Go to a project or group
  2. Secure -> Policies -> New policy -> Scan execution policy
  3. Add new action -> Run CI/CD Code
  4. Select option Linked existing CI file
  5. Type in file path, remove it, type switch back and forth between rule mode and yaml mode

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #432745 (closed)

Edited by Sascha Eggenberger

Merge request reports