Extend CS SBOM-based licenses to support id
What does this MR do and why?
Extend CS SBOM-based licenses to support id.
This change is required due to a breaking change in Trivy's license data structure.
TLDR; the default value has been moved from license.name
to license.id
.
References
Related issue: container scanning sbom-based license ingestion... (#560330 - closed) • Zamir Martins • 18.3
Screenshots or screen recordings
Before | After |
---|---|
![]() |
![]() |
How to set up and validate locally
- Create a project with the following file:
.gitlab-ci.yml
include:
- template: Jobs/Container-Scanning.gitlab-ci.yml
container_scanning:
variables:
CS_IMAGE: alpine:3.15
CS_INCLUDE_LICENSES: true
- Run a pipeline on the default branch
- Go to Secure > Dependency List
- Verify the values under the license column
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Zamir Martins