fix grype name

Signed-off-by: Anubhav Gupta <mail.anubhav06@gmail.com>
This commit is contained in:
Anubhav Gupta
2024-04-09 21:33:16 +05:30
parent b9fd60b395
commit e754ecff4f
+4
View File
@@ -44,6 +44,10 @@ func (ks *Kubescape) Patch(ctx context.Context, patchInfo *ksmetav1.PatchInfo, s
if err != nil {
return nil, err
}
// WORKAROUND: Since the current version of grype is buggy and doesn't include this value. Hence this requirement
scanResults.ID.Name = "grype"
// Save the scan results to a file in json format
pres := presenter.GetPresenter("json", "", false, *scanResults)