Skip to content

Commit fd2f946

Browse files
authored
add libraryPkg version (#2120)
1 parent 1638c4b commit fd2f946

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

detector/library.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ func (d libraryDetector) getVulnDetail(tvuln types.DetectedVulnerability) (vinfo
246246
{
247247
Key: d.scanner.GetLibraryKey(),
248248
Name: tvuln.PkgName,
249+
Version: tvuln.InstalledVersion,
249250
FixedIn: tvuln.FixedVersion,
250251
Path: d.scanner.LockfilePath,
251252
},

models/library.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ func (s LibraryScanner) GetLibraryKey() string {
114114
type LibraryFixedIn struct {
115115
Key string `json:"key,omitempty"`
116116
Name string `json:"name,omitempty"`
117+
Version string `json:"version,omitempty"`
117118
FixedIn string `json:"fixedIn,omitempty"`
118119
Path string `json:"path,omitempty"`
119120
}

0 commit comments

Comments
 (0)