Disable rule mode for invalid vulnerability_age
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
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
- Choose
Security Scan
- Add age filter
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #397086 (closed)
Edited by Martin Čavoj