Skip to content

Draft: Create vulnerability scanning SBOM scanner

What does this MR do and why?

This MR introduces an SBOM scanner class that orchestrates the creation of the security reports when supplied with an SBOM. The overall process looks like the following:

  1. A scanner instance is created and initialized with a CI SBOM report a.k.a. a parsed CycloneDX object.
  2. The scanner then fetches the advisories for a component using the PackageAdvisories class.
  3. A security report builder is initialized, and the component with the advisories is added using the report builder.
  4. The #report method then returns a security report that was built.
  5. Additionally, any scan metrics are updated as well to reflect what package manager was used and if the scan succeeded/failed.

This MR is the first in a series of related changes:

Closes #408257

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Oscar Tovar

Merge request reports