mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-12-02 01:40:33 +00:00
fix(license): categorize MIT-0 as unencumbered (#11498)
This commit is contained in:
1 parent
d8890eeda0
commit
4918c342b0
4 files changed
+13
No files matched your search
@@ -375,6 +375,7 @@ license:
|
||||
- CC0-1.0
|
||||
- Unlicense
|
||||
- 0BSD
|
||||
- MIT-0
|
||||
|
||||
```
|
||||
## Misconfiguration options
|
||||
|
||||
@@ -338,6 +338,7 @@ license:
|
||||
- CC0-1.0
|
||||
- Unlicense
|
||||
- 0BSD
|
||||
- MIT-0
|
||||
|
||||
permissive: []
|
||||
```
|
||||
|
||||
@@ -126,6 +126,7 @@ const (
|
||||
LPL102 = "LPL-1.02"
|
||||
LPL10 = "LPL-1.0"
|
||||
MIT = "MIT"
|
||||
MIT0 = "MIT-0"
|
||||
MPL10 = "MPL-1.0"
|
||||
MPL11 = "MPL-1.1"
|
||||
MPL20 = "MPL-2.0"
|
||||
@@ -367,6 +368,7 @@ var (
|
||||
CC010,
|
||||
Unlicense,
|
||||
ZeroBSD,
|
||||
MIT0,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
@@ -30,6 +30,15 @@ func TestScanner_Scan(t *testing.T) {
|
||||
wantCategory: types.CategoryForbidden,
|
||||
wantSeverity: "CRITICAL",
|
||||
},
|
||||
{
|
||||
name: "default unencumbered licenses",
|
||||
categories: map[types.LicenseCategory][]string{
|
||||
types.CategoryUnencumbered: expression.UnencumberedLicenses,
|
||||
},
|
||||
licenseName: "MIT-0",
|
||||
wantCategory: types.CategoryUnencumbered,
|
||||
wantSeverity: "LOW",
|
||||
},
|
||||
{
|
||||
name: "has plus",
|
||||
categories: map[types.LicenseCategory][]string{
|
||||
|
||||
Reference in new issue
Block a user