Skip to content

Add remediation badge to vulnerability report

Samantha Ming requested to merge 136509-remediation-badge into master

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 image

How to set up and validate locally

  1. In order to run a pipeline to generate a Vulnerability report, you'll need an EE license.
  2. Fork https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations.
  3. Run a pipeline against the default branch. It will generate vulnerabilities.
  4. Go to the project vulnerability report page
  5. The vulnerability with remediation will display the solution badge
  6. When hovered, the tooltip should display

Relates: #429534 (closed)

Edited by Samantha Ming

Merge request reports