Skip to content

bug(cyclonedx): Trivy adds license ID/name and SPDX expression simultaneously for one component #9300

@DmitriyLewen

Description

@DmitriyLewen

Description

License array should contains (list of SPDX licenses and/or named licenses) OR (tuple of one SPDX License Expression) (see https://cyclonedx.org/docs/1.6/json/#components_items_licenses)

But Trivy may include both types.
e.g.:

        {
          "expression": "GPL-3.0-or-later WITH Texinfo-exception"
        },
        {
          "license": {
            "id": "GFDL-1.3-or-later"
          }
        },

Discussed in #9295

Metadata

Metadata

Assignees

Labels

kind/bugCategorizes issue or PR as related to a bug.scan/licenseIssues relating to license scanning

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions