Skip CS components when parsing licenses from SBOM

What does this MR do and why?

Skip CS components when parsing licenses from SBOM. CS purl type packages have not yet been tested for license scanning support, enabling this could cause undesired behavior for customers.

Changelog: changed

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.

Screenshots or screen recordings

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

Before After
License is reported as MIT: Screenshot_2024-10-10_at_11.38.31 License is reported as unknown: Screenshot_2024-10-10_at_11.38.10

How to set up and validate locally

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

  1. clone https://gitlab.com/gitlab-org/secure/tests/olivier/os-package-licenses/ on your gdk
  2. let the pipeline run on the default branch
  3. all licenses for OS components should be unknown
Edited by Olivier Gonzalez

Merge request reports

Loading