Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions pkg/cmd/cmd_sbom/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func runGenerate(ctx context.Context, opts *generateOptions) error {
Enabled: true,
SBOM: &security.SBOMConfig{
Enabled: true,
Required: true,
Format: string(format),
Generator: "syft",
Output: &security.OutputConfig{
Expand All @@ -91,9 +92,6 @@ func runGenerate(ctx context.Context, opts *generateOptions) error {
if err != nil {
return fmt.Errorf("failed to generate SBOM: %w", err)
}
if generatedSBOM == nil {
return fmt.Errorf("no SBOM generated")
}

// Print summary
fmt.Printf("✓ SBOM generated successfully\n")
Expand Down
Loading