Update `match_on_inclusion` to `match_on_inclusion_license`
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 (closed)
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 | |
After |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Enable feature flag:
Feature.enable(:security_policies_breaking_changes)
-
Go to Project/Group
-
Secure -> Policies -> New Merge request approval policy
-
Choose license scan in rule section
-
Make sure you see
match_on_inclusion_license
instead ofmatch_on_inclusion
-
Switch between rule mode and yaml mode modify
match_on_inclusion_license
tomatch_on_inclusion
go back to rule mode make sure it is disabled -
Change back to
match_on_inclusion_license
, save the policy
Related to #424513 (closed)