From e754ecff4f1d329d1df00c988c953d4211d3aa76 Mon Sep 17 00:00:00 2001 From: Anubhav Gupta Date: Tue, 9 Apr 2024 21:33:16 +0530 Subject: [PATCH] fix grype name Signed-off-by: Anubhav Gupta --- core/core/patch.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/core/patch.go b/core/core/patch.go index eab6fd31..5d7e29d0 100644 --- a/core/core/patch.go +++ b/core/core/patch.go @@ -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)