From 277179e5d96690a94732aa6aa3e865394a879b20 Mon Sep 17 00:00:00 2001 From: tomersein Date: Wed, 20 Nov 2024 17:56:42 +0200 Subject: [PATCH] disable package scan Signed-off-by: tomersein --- syft/create_sbom_config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syft/create_sbom_config.go b/syft/create_sbom_config.go index 8e9e76b5c3b..7600415ec09 100644 --- a/syft/create_sbom_config.go +++ b/syft/create_sbom_config.go @@ -7,6 +7,7 @@ import ( "runtime/debug" "strings" + "github.com/anchore/syft/internal/log" "github.com/anchore/syft/internal/task" "github.com/anchore/syft/syft/cataloging" "github.com/anchore/syft/syft/cataloging/filecataloging" @@ -267,7 +268,8 @@ func (c *CreateSBOMConfig) packageTasks(src source.Description) ([]task.Task, *t finalTasks = append(finalTasks, persistentTasks...) if len(finalTasks) == 0 { - return nil, nil, fmt.Errorf("no catalogers selected") + log.Warn("no catalogers selected") + return finalTasks, &selection, nil } return finalTasks, &selection, nil