Skip to content

Fix broken vulnerability ID in remediations

Fabien Catteau requested to merge 430922-fix-remediation-vuln-id into master

What does this MR do?

Fix broken vulnerability ID in remediations.

  • remediateReport now takes the report.Report along with the affected files returned by the scanner.
  • It uses the report to find vulnerabilities that match affections that have been cured, and get their ID. This is implemented in a local function named vulnID().
  • Remediations are directly added to the report, instead of being returned.

What are the relevant issue numbers?

Gemnasium analyzer generates different id for r... (gitlab-org/gitlab#430922 - closed)

Does this MR meet the acceptance criteria?

Edited by Fabien Catteau

Merge request reports