mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
feat(python): add packaging detector and respective hook (#1223)
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -32,6 +32,7 @@ func detect(driver Driver, libs []ftypes.LibraryInfo) ([]types.DetectedVulnerabi
|
||||
|
||||
for i := range vulns {
|
||||
vulns[i].Layer = lib.Layer
|
||||
vulns[i].PkgPath = lib.FilePath
|
||||
}
|
||||
vulnerabilities = append(vulnerabilities, vulns...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user