Skip to content

Commit

Permalink
Merge pull request #351 from paketo-buildpacks/syft-update
Browse files Browse the repository at this point in the history
Change `syft packages` to `syft scan`
  • Loading branch information
dmikusa authored Jul 5, 2024
2 parents 7f364b3 + c925f2b commit ca9df99
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 ca9df99

Please sign in to comment.