Decouple policy name update from yaml/rule modes

What does this MR do and why?

Decouple policy name update from yaml/rule modes and set rule mode as default.

Related issue: #354572 (closed) and #354216 (closed)

Screenshots or screen recordings

Policy name is set from rule mode so only empty validation is present

fix_policy_name_validation

Rule mode is the default mode

rule_mode

How to set up and validate locally

  1. Enable scan_result_policy feature flag (if you haven't pulled master for a while)
  2. Create a security project as described in the docs
  3. Create a new scan result policy with the project owner

MR acceptance checklist

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

Edited by Zamir Martins

Merge request reports

Loading