Update markdown template

This commit is contained in:
abhisek 2023-02-01 13:38:41 +05:30
parent 73624a8a6e
commit 0405d9d83d
No known key found for this signature in database
GPG Key ID: CB92A4990C02A88F

View File

@ -13,5 +13,18 @@ The scan was performed on following manifests:
* [{{ $m.Ecosystem }}] {{ $m.Path }}
{{ end }}
## Packages
{{ range $m := .Manifests }}
### [{{ $m.Ecosystem }}] {{ $m.Path }}
{{ range $p := $m.Packages }}
#### {{ $p.PackageDetails.Name }} / {{ $p.PackageDetails.Version }}
{{ if and $p.Insights $p.Insights.Vulnerabilities }}
* {{ len *$p.Insights.Vulnerabilites }} vulnerabilities were identified
{{ end }}
{{ end }}
{{ end }}