mirror of
https://github.com/safedep/vet.git
synced 2025-12-11 09:25:44 -06:00
Update json_report.go
Signed-off-by: Hardik Nanda <hnanda21@gmail.com>
This commit is contained in:
parent
6ac40c592d
commit
1d48cf116a
@ -266,12 +266,11 @@ func (j *jsonReportGenerator) buildJsonPackageReportFromPackage(p *models.Packag
|
|||||||
|
|
||||||
if (len(pkg.Vulnerabilities) > 0 && flag) {
|
if (len(pkg.Vulnerabilities) > 0 && flag) {
|
||||||
pkg.Advices = append(pkg.Advices, &schema.RemediationAdvice{
|
pkg.Advices = append(pkg.Advices, &schema.RemediationAdvice{
|
||||||
TargetAlternatePackageVersion: updateToVersion,
|
Type: schema.RemediationAdviceType_UpgradePackage,
|
||||||
|
TargetAlternatePackageVersion: updateToVersion,
|
||||||
})
|
})
|
||||||
flag = false
|
flag = false
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, license := range licenses {
|
for _, license := range licenses {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user