Skip to content

Disable rule mode for invalid vulnerability_age

Martin Čavoj requested to merge 397086-fe-create-age-filtering-4 into master

What does this MR do and why?

This MR is a follow-up of Add age filter for scan result policies (!122638 - merged) and adds validation for vulnerability_age values. It disables the rule mode for invalid values.

Screenshots or screen recordings

vulnerability_age_validation

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. Choose Security Scan
  4. Add age filter
  5. Navigate to yaml mode, make changes to the values to a value that does not exist, navigate to rule mode and ensure that rule mode is disabled

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 #397086 (closed)

Edited by Martin Čavoj

Merge request reports

Loading