Skip to content

Add source_xid attribute to the ErrorTracking

Aditya Tiwari requested to merge 431938-add-source-xid into master

What does this MR do and why?

Add source_xid attribute to ErrorTracking in CreateVulnerabilityService class.

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.

How to set up and validate locally

Run rspec or

Create invalid affected component using

build(:vs_possibly_affected_component, purl_type: 'npm', pipeline: pipeline, project: pipeline.project,
            source: nil)

and run CreateVulnerabilityService.execute with it. You can put binding.pry in CreateVulnerabilityService#execute to inspect the source_xid.

Related to #431938 (closed)

Edited by Aditya Tiwari

Merge request reports