We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 521f59c commit 54d61f3Copy full SHA for 54d61f3
pkg/osvscanner/vulnerability_result.go
@@ -3,6 +3,7 @@ package osvscanner
3
import (
4
"fmt"
5
"sort"
6
+ "strings"
7
8
"github.com/google/osv-scanner/internal/sourceanalysis"
9
"github.com/google/osv-scanner/pkg/grouper"
@@ -66,10 +67,10 @@ func buildVulnerabilityResults(
66
67
pkg.Licenses = licensesResp[i]
68
allowlist := make(map[string]bool)
69
for _, license := range licensesAllowlist {
- allowlist[license] = true
70
+ allowlist[strings.ToLower(license)] = true
71
}
72
for _, license := range pkg.Licenses {
- if !allowlist[string(license)] {
73
+ if !allowlist[strings.ToLower(string(license))] {
74
pkg.LicenseViolations = append(pkg.LicenseViolations, license)
75
76
0 commit comments