Add remediation badge to vulnerability report
What does this MR do and why?
This MR adds a solution badge. Which is displayed if the vulnerability hasRemedations
. When hovered over, the solution badge will display the appropriate tooltip.
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
Before | After |
---|---|
no solution badge | ![]() |
How to set up and validate locally
- In order to run a pipeline to generate a Vulnerability report, you'll need an EE license.
- Fork https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations.
- Run a pipeline against the default branch. It will generate vulnerabilities.
- Go to the project vulnerability report page
- The vulnerability with remediation will display the solution badge
- When hovered, the tooltip should display
Relates: #429534 (closed)
Edited by Samantha Ming