mirror of
https://github.com/goharbor/harbor
synced 2025-05-14 07:26:04 +00:00
add cve link in Harbor API
This commit is contained in:
parent
987ad06ed7
commit
5846d7d28d
@ -107,6 +107,7 @@ type VulnerabilityItem struct {
|
|||||||
Pkg string `json:"package"`
|
Pkg string `json:"package"`
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
|
Link string `json:"link"`
|
||||||
Fixed string `json:"fixedVersion,omitempty"`
|
Fixed string `json:"fixedVersion,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -434,6 +434,7 @@ func transformVulnerabilities(layerWithVuln *models.ClairLayerEnvelope) []*model
|
|||||||
Version: f.Version,
|
Version: f.Version,
|
||||||
Severity: clair.ParseClairSev(v.Severity),
|
Severity: clair.ParseClairSev(v.Severity),
|
||||||
Fixed: v.FixedBy,
|
Fixed: v.FixedBy,
|
||||||
|
Link: v.Link,
|
||||||
Description: v.Description,
|
Description: v.Description,
|
||||||
}
|
}
|
||||||
res = append(res, vItem)
|
res = append(res, vItem)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user