Skip to content

Disable rule mode when vulnerability_states are invalid

Martin Čavoj requested to merge 396985-fe-create-status-filtering-2 into master

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

invalid_vulnerability_states

How to set up and validate locally

  1. Ensure the GitLab Ultimate license is enabled
  2. Navigate to a project/group => Security & Compliance => Policies => New policy => Scan result policy
  3. Add security scan
  4. 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
  5. 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
  6. 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.

Related to #396985 (closed)

Merge request reports

Loading