Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple licenses as string instead of list #3430

Open
dariozachow opened this issue Nov 11, 2024 · 0 comments
Open

Multiple licenses as string instead of list #3430

dariozachow opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dariozachow
Copy link

What happened:

When using syft to create a sbom containing the npm package https://www.npmjs.com/package/type-fest, the license entry contains one entry instead of two. Furthermore the value and spdxExpression for this licenseentry are both licenses concatenated with OR. This makes displaying the values and spdxExpression harder.

SBOM output:

"licenses": [ { "value": "(MIT OR CC0-1.0)", "spdxExpression": "(MIT OR CC0-1.0)", "type": "declared", "urls": [], "locations": [ { "path": "/package-lock.json", "accessPath": "/package-lock.json", "annotations": { "evidence": "primary" } } ] }

What you expected to happen:

I would expect two license entries, each containing one license, in this cases MIT and CCO-1.0

Steps to reproduce the issue:

  1. Have a node project with type-fest as an dependency
  2. Run syft syft scan . -o json=syft.sbom.json --select-catalogers "+sbom-cataloger"
  3. search for type-fest in sbom

Anything else we need to know?:

Environment:

  • Output of syft version: syft 1.16.0
  • OS (e.g: cat /etc/os-release or similar): System Version: macOS 15.1 (24B83) Kernel Version: Darwin 24.1.0
@dariozachow dariozachow added the bug Something isn't working label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: No status
Development

No branches or pull requests

1 participant