Disable rule mode when vulnerability_states are invalid
What does this MR do and why?
Follow-up of !119475 (merged)
This MR disables rule mode when vulnerabilities_states
from YAML are invalid.
Screenshots or screen recordings
How to set up and validate locally
- Ensure the GitLab Ultimate license is enabled
- Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
- Add security scan
- Navigate to yaml mode, make changes to the
vulnerability_states
by adding value is not allowed, navigate to rule mode and ensure that rule mode is disabled - Navigate to yaml mode, make changes to the
vulnerability_states
by adding a value that is allowed, navigate to rule mode and ensure the rule mode is enabled and dropdowns have been updated - Create a new policy, edit it and ensure the rule mode is enabled
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 #396985 (closed)