Create and trigger the an event to update the sbom_occurrences_vulnerabilities table based on the CVS

What does this MR do and why?

Create and trigger the an event to update the sbom_occurrences_vulnerabilities table based on the CVS.

This change is behind the FF update_sbom_occurrences_vulnerabilities_on_cvs and will only be applicable to dependency_scanning findings.

The highest number of findings will be 100.

References

Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.

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

  1. Enable update_sbom_occurrences_vulnerabilities_on_cvs feature flag.
  2. Create a project with the following files:
  3. After running the pipeline it will call Gitlab::EventStore.publish with Sbom::VulnerabilitiesCreatedEvent.
  4. The input for Sbom::VulnerabilitiesCreatedEvent should include the following:
    • package_name: express
    • package_version: 4.16.0
    • purl_type: npm
Edited by Zamir Martins

Merge request reports

Loading