Skip to content

Add merge request option rule in scan result policy

Artur Fedorov requested to merge 420878-policies-merge-request-rule into master

What does this MR do and why?

This MR adds new rule for scan result policy

New rule builder for any merge request for scan result policy on group and project level.

It works both on project and group level

This MR resolves #420878 (closed)

Screenshots or screen recordings

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

PROJECT GROUP
project_any_mr.mov group_level.mov

How to set up and validate locally

Feature.enable(:scan_result_any_merge_request)
  1. Go to a project or group
  2. Open Secure -> Policies
  3. Create new scan result policy
  4. Add any merge request rule in rules section
  5. Switch between yaml and rule mode, selected state must be preserved between modes
  6. Mess with key names in yaml mode, switch to rule mode, check if validation work

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 #420878 (closed)

Edited by Artur Fedorov

Merge request reports

Loading