From bb68ee1832581711409c623f60b4dfd6cfc34f35 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Fri, 28 Jan 2022 13:12:04 +0100 Subject: [PATCH] fix: use other source-hint Signed-off-by: Christian Kotzbauer --- internal/syft/syft.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/syft/syft.go b/internal/syft/syft.go index e45c3694..e560793d 100644 --- a/internal/syft/syft.go +++ b/internal/syft/syft.go @@ -52,7 +52,7 @@ func (s *Syft) ExecuteSyft(img kubernetes.ImageDigest) (string, error) { return "", err } - src, cleanup, err := source.New(filepath.Join("file:", imagePath), nil, nil) + src, cleanup, err := source.New(filepath.Join("docker-archive:", imagePath), nil, nil) if err != nil { logrus.WithError(fmt.Errorf("failed to construct source from input %s: %w", imagePath, err)).Error("Source-Creation failed") return "", err