Skip to content

Commit

Permalink
Change syft packages to syft scan
Browse files Browse the repository at this point in the history
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 <dan@mikusa.com>
  • Loading branch information
dmikusa committed Jul 5, 2024
1 parent 54cd048 commit f9d1cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit f9d1cfb

Please sign in to comment.