Replies: 2 comments 3 replies
-
|
Hello @nartreb
This is very strange logic. Do you have any documentation that points to this kind of behavior? Regrards, Dmitriy |
Beta Was this translation helpful? Give feedback.
3 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
NPM packages commonly write "UNLICENSED" in the license field to indicate a commercial license. (Which, of course, has no SPDX ID.).
When trivy scans these packages, it (rightly) states the license name as "UNLICENSED", but (wrongly) classifies the license as "unencumbered" and therefore LOW severity.
I think the correct behavior is to classify "UNLICENSED" packages as "unknown" license type, "UNKNOWN" severity.
I'm wondering if somehow "UNLICENSED" is matching into the same category as the "Unlicense" (which IS an unencumbered-category, Low-severity license...
Desired Behavior
Packages that clearly indicate commercial license (i.e., NPM packages with "UNLICENSED" in their license SPDX field) should have their licenses reported in a category suitable for commercial licenses. Since Trivy doesn't have a commercial category, the best category would be "unknown".
Actual Behavior
NPM packages marked "UNLICENSED" are categorized as "unencumbered", with LOW severity.
Reproduction Steps
Target
Filesystem
Scanner
License
Output Format
Table
Mode
Standalone
Debug Output
Operating System
linux
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions