Add merge request option rule in scan result policy
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)
- Go to a project or group
- Open Secure -> Policies
- Create new
scan result policy
- Add
any merge request
rule inrules
section - Switch between
yaml
andrule
mode, selected state must be preserved between modes - Mess with key names in
yaml
mode, switch torule
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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #420878 (closed)
Edited by Artur Fedorov