From f9d1cfb59bc05f7bb62544a228a6124f7a1cd428 Mon Sep 17 00:00:00 2001 From: Daniel Mikusa Date: Fri, 5 Jul 2024 00:19:42 -0400 Subject: [PATCH] Change `syft packages` to `syft scan` The `syft packages` command was deprecated. This has been generating warning messages in builds for a while now. The new command is `syft scan` and it has the same arguments, so no argument changes are necessary. Signed-off-by: Daniel Mikusa --- sbom/sbom.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbom/sbom.go b/sbom/sbom.go index b42b734..0d8340e 100644 --- a/sbom/sbom.go +++ b/sbom/sbom.go @@ -138,7 +138,7 @@ func (b SyftCLISBOMScanner) ScanLaunch(scanDir string, formats ...libcnb.SBOMFor } func (b SyftCLISBOMScanner) scan(sbomPathCreator func(libcnb.SBOMFormat) string, scanDir string, formats ...libcnb.SBOMFormat) error { - args := []string{"packages", "-q"} + args := []string{"scan", "-q"} for _, format := range formats { args = append(args, "-o", fmt.Sprintf("%s=%s", SBOMFormatToSyftOutputFormat(format), sbomPathCreator(format)))