Skip to content

Commit

Permalink
Fix report due to failure on Dashbourd
Browse files Browse the repository at this point in the history
  • Loading branch information
margaritalm committed May 15, 2024
1 parent 60999ca commit 3dd766f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/commands/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ func parseGlDependencyVulnerability(result *wrappers.ScanResult, glDependencyRes
Package: wrappers.PackageName{Name: result.ScanResultData.PackageIdentifier},
DependencyLocationVersion: "",
Direct: result.ScanResultData.ScaPackageCollection.IsDirectDependency,
DependencyPath: "",
DependencyPath: result.ScanResultData.Line,
},
},
})
Expand Down Expand Up @@ -1556,7 +1556,7 @@ func collectDependencyFileLocations(result *wrappers.ScanResult) []wrappers.Depe
},
DependencyLocationVersion: result.ScanResultData.PackageData[i].URL,
Direct: true,
DependencyPath: result.ScanResultData.PackageData[i].Type,
DependencyPath: result.ScanResultData.Line,
})
}
return allIdentifierLocations
Expand Down
2 changes: 1 addition & 1 deletion internal/wrappers/results-gl-dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ type DependencyLocation struct {
Package PackageName `json:"package"`
DependencyLocationVersion string `json:"version"`
Direct bool `json:"direct"`
DependencyPath string `json:"iid"`
DependencyPath uint `json:"iid"`
}

type PackageName struct {
Expand Down

0 comments on commit 3dd766f

Please sign in to comment.