mirror of
https://github.com/aquasecurity/trivy.git
synced 2026-02-09 10:13:12 +08:00
fix(license): stop spliting a long license text (#7336)
Signed-off-by: knqyf263 <knqyf263@gmail.com> Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -80,7 +80,7 @@ func (p *Parser) Parse(r xio.ReadSeekerAt) ([]ftypes.Package, []ftypes.Dependenc
|
||||
}
|
||||
|
||||
if license == "" && h.Get("License-File") != "" {
|
||||
license = "file://" + h.Get("License-File")
|
||||
license = licensing.LicenseFilePrefix + h.Get("License-File")
|
||||
}
|
||||
|
||||
return []ftypes.Package{
|
||||
|
||||
Reference in New Issue
Block a user