Skip to content

Conversation

@paulrosca-snyk
Copy link
Contributor

No description provided.

BREAKING CHANGE:
* Enriching a CycloneDX document with licenses will no longer generate SPDX license expressions, instead parlay will add individual license entries with the "id" field populated if the licenses are valid SPDX identifiers, or with the "name" field populated otherwise
* When enriching an SPDX document with licenses, if any of the licenses aren't valid SPDX identifiers parlay will create "OtherLicense" entries in the SBOM and reference those in the "licenseConcluded" expressions
Copy link
Contributor

@goneall goneall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on some testing, invalid concluded licenses can be generated.

Here's an example where the input SPDX JSON file had a value of "licenseConcluded": "NONE":

{
            "name": "@types/node",
            "SPDXID": "SPDXRef-Package-314ba809fd1a1f26",
            "versionInfo": "22.13.0",
            "supplier": "Organization: DefinitelyTyped",
            "downloadLocation": "NONE",
            "filesAnalyzed": false,
            "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
            "sourceInfo": "package found in: it-otf/otf-frontend/package-lock.json",
            "licenseConcluded": "()",
            "licenseDeclared": "MIT",
            "description": "TypeScript definitions for node",
            "externalRefs": [{
                    "referenceCategory": "PACKAGE-MANAGER",
                    "referenceType": "purl",
                    "referenceLocator": "pkg:npm/%40types/[email protected]"
                }
            ],
            "attributionTexts": ["PkgID: @types/[email protected]", "PkgType: npm"],
            "primaryPackagePurpose": "LIBRARY"
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants