Skip to content

Display error when LLM determines false positive

What does this MR do and why?

Improve false positive error message when LLM doesn't provide fixed code for a vulnerability.

Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/474690

Screenshots or screen recordings

The response from the AI provider was empty because it has determined this vulnerability to be a false positive. Use this feature with caution and always verify AI's response.

Before After
Screenshot_2024-07-30_at_16.36.18 Screenshot_2024-07-30_at_16.40.40

How to set up and validate locally

  1. Find vulnerability with false positive
  2. Click "Resolve with merge request"
  3. Observe error message
Edited by Samantha Ming

Merge request reports

Loading