Skip to content

Commit

Permalink
Included sbom 1.5
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <[email protected]>
  • Loading branch information
naveensrinivasan committed Aug 21, 2024
1 parent 5f20a7d commit 68e4c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sbom/sbom.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func GenerateSBOMWithCycloneDX(directory, outputFile, repo string) error {
ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
defer cancel()

cmd := exec.CommandContext(ctx, "syft", "scan", directory, "-o", "cyclonedx-json", "--file", outputFileName)
cmd := exec.CommandContext(ctx, "syft", "scan", directory, "-o", "cyclonedx-json@1-5", "--file", outputFileName)
fmt.Println("Executing command: for the repo", repo, cmd.String())
output, err := cmd.CombinedOutput()
if ctx.Err() == context.DeadlineExceeded {
Expand Down

0 comments on commit 68e4c6e

Please sign in to comment.