Skip to content

Add purl types for CS

Aditya Tiwari requested to merge 398810-add-purl-for-cs into master

What does this MR do and why?

Describe in detail what your merge request does and why.

Add the following purl types to Enums::Sbom::PURL_TYPES and Enums::PackageMetadata::PURL_TYPES:

Task actions

  • apk
  • rpm
  • deb
  • cbl-mariner

Screenshots or screen recordings

Components are updated in the DB

Screenshot_2023-03-29_at_12.22.33_PM

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

How to set up and validate locally

  1. Check out this MR in GDK.
  2. Clone this test project in your local gdk.
  3. Set the variable as follows in the project gitlab-ci.yml.
  4. Go to console and check the tables sbom_* or Sbom::Component. Match it with generated sbom json report.
  CS_ANALYZER_IMAGE: registry.gitlab.com/gitlab-org/security-products/analyzers/container-scanning/tmp/trivy:55a702958694e3404c036915ba1ee93aea1e9133
  CI_REGISTRY_IMAGE: registry.gitlab.com/atiwari71/container-scanning-test

This will fetch the container-scanning build with SBOM report feature from this MR.

MR acceptance checklist

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

Related to #398810 (closed)

Edited by Aditya Tiwari

Merge request reports