@@ -66,7 +66,6 @@ type PackageResult struct {
66
66
VulnCount VulnCount
67
67
Licenses []models.License
68
68
LicenseViolations []models.License
69
- Path string `json:"-"`
70
69
DepGroups []string `json:"-"`
71
70
}
72
71
@@ -399,7 +398,7 @@ func processSource(packageSource models.PackageSource) map[string]SourceResult {
399
398
continue // Skip processing this vulnPkg as it was already added
400
399
}
401
400
402
- packageResult := processPackage (vulnPkg , packageSource . Source . Path )
401
+ packageResult := processPackage (vulnPkg )
403
402
if vulnPkg .Package .ImageOrigin != nil {
404
403
packageResult .LayerDetail = PackageContainerInfo {
405
404
LayerIndex : vulnPkg .Package .ImageOrigin .Index ,
@@ -449,7 +448,7 @@ func processSource(packageSource models.PackageSource) map[string]SourceResult {
449
448
// This function processes the vulnerability groups, updates vulnerability details,
450
449
// and constructs the final output result for the package, including details about
451
450
// called and uncalled vulnerabilities, fixable counts, and layer information (if available).
452
- func processPackage (vulnPkg models.PackageVulns , path string ) PackageResult {
451
+ func processPackage (vulnPkg models.PackageVulns ) PackageResult {
453
452
regularVulnMap , hiddenVulnMap := processVulnGroups (vulnPkg )
454
453
updateVuln (regularVulnMap , vulnPkg )
455
454
updateVuln (hiddenVulnMap , vulnPkg )
@@ -473,7 +472,6 @@ func processPackage(vulnPkg models.PackageVulns, path string) PackageResult {
473
472
Licenses : vulnPkg .Licenses ,
474
473
LicenseViolations : vulnPkg .LicenseViolations ,
475
474
DepGroups : vulnPkg .DepGroups ,
476
- Path : path ,
477
475
}
478
476
479
477
return packageResult
0 commit comments