Skip to content

Create resolve vulnerability button UI

Samantha Ming requested to merge 430888-resolve-this-vulnerability into master

What does this MR do and why?

This MR introduces the UI only for the "Resolve with AI" button. This only applies to "SAST" vulnerabilities.

MR Changes
This MR Introduce the "Resolve with AI" UI button
tbd Handle onClick of the "Resolve with AI" button

Note: The button won't do anything when clicked, that will be handled in the next MR

Screenshots or screen recordings

Split Button Single Button Not SAST (no button)
image image image

How to set up and validate locally

  1. Have the related FF enabled: echo "Feature.enable(:resolve_vulnerability_ai)" | rails c
  2. In order to run a pipeline to generate a Vulnerability report, you'll need an EE license.
  3. Fork https://gitlab.com/gitlab-org/govern/demos/sandbox/minac/test-remediations (for the split button)
  4. Fork https://gitlab.com/gitlab-org/security-products/tests/webgoat.net (for the solo button)
  5. Fork https://gitlab.com/gitlab-examples/security/security-reports (no button)
  6. Run a pipeline against the default branch. It will generate vulnerabilities.
  7. Go to the project vulnerability report page
  8. Click on the SAST vulnerability
  9. You will see the "Resolve with AI" button
  10. When you click on a non SAST vulnerability, there will be no "Resolve with AI" button

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

Edited by Samantha Ming

Merge request reports