Skip to content

Add "explain this vulnerability" feature to vuln details page

What does this MR do and why?

This MR adds the "Explain this vulnerability" feature to the vulnerability details page:

2023-04-13_21-47-50

How to set up and validate locally

  1. Enable the openai_experimentation, ai_experimentation_api, and explain_vulnerability feature flags.
  2. Clone this project: https://gitlab.com/gitlab-examples/security/security-reports
  3. Run a pipeline against the master branch.
  4. Go to Security -> Vulnerability report.
  5. Click on a vulnerability to go to the details page.
  6. Click on the "Explain this vulnerability" button.
  7. Verify that the AI response is loaded after several seconds.

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

Edited by Daniel Tian

Merge request reports