Add actions section to vulnerability management policy editor_component
What does this MR do and why?
Related #465857 (closed)
Add actions section to vulnerability management policy editor_component
This adds the actions section to the editor component of the vulnerability management policy type. Currently, there is only 1 option, namely auto_resolve
which renders as the label Resolved. When we work on auto-dismiss feature later on, this label will become a dropdown where you can select Resolved / Dismissed.
Because there's only 1 option at the moment, the default template already contains
actions:
- type: auto_resolve
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
invalid actions
yaml
How to set up and validate locally
- enable feature flag
vulnerability_management_policy_type
- go to a project
- go to Secure > Policies
- click New policy
- click Select policy on the Vulnerability management policy card
- validate it shows a yaml preview with
type: vulnerability_management_policy
name: ''
description: ''
enabled: true
actions:
- type: auto_resolve
- validate that if you change
auto_resolve
by something else or you remove theactions
from the yaml, the actions section will still render but not display the "Resolved" label
Edited by Lorenz van Herwaarden