Skip to content

Update `match_on_inclusion` to `match_on_inclusion_license`

Artur Fedorov requested to merge 424513-policies-match_on_inclusion into master

What does this MR do and why?

This MR changes key name for license rule for Merge request approval policy

Match on inclusion key is replaced with new key as a part of breaking changes in #424513

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.

UI Description
before.png Before
after.png After

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(:security_policies_breaking_changes)
  2. Go to Project/Group

  3. Secure -> Policies -> New Merge request approval policy

  4. Choose license scan in rule section

  5. Make sure you see match_on_inclusion_license instead of match_on_inclusion

  6. Switch between rule mode and yaml mode modify match_on_inclusion_license to match_on_inclusion go back to rule mode make sure it is disabled

  7. Change back to match_on_inclusion_license, save the policy

     

Related to #424513

Merge request reports