diff --git a/pkg/commands/artifact/run.go b/pkg/commands/artifact/run.go index 33b3346695..58904294af 100644 --- a/pkg/commands/artifact/run.go +++ b/pkg/commands/artifact/run.go @@ -498,8 +498,7 @@ func disabledAnalyzers(opts flag.Options) []analyzer.Type { // But we don't create client if vulnerability analysis is disabled and SBOM format is not used // We need to disable jar analyzer to avoid errors // TODO disable all languages that don't contain license information for this case - if opts.Scanners.Enabled(types.LicenseScanner) && !opts.Scanners.Enabled(types.VulnerabilityScanner) && - !slices.Contains(report.SupportedSBOMFormats, opts.Format) { + if !opts.Scanners.Enabled(types.VulnerabilityScanner) && !slices.Contains(report.SupportedSBOMFormats, opts.Format) { analyzers = append(analyzers, analyzer.TypeJar) }