We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74dc5b6 commit 7694df1Copy full SHA for 7694df1
pkg/commands/artifact/run.go
@@ -514,7 +514,8 @@ func disabledAnalyzers(opts flag.Options) []analyzer.Type {
514
analyzers = append(analyzers, analyzer.TypeHistoryDockerfile)
515
}
516
517
- if len(opts.SBOMSources) == 0 {
+ // Skip executable file analysis if Rekor isn't a specified SBOM source.
518
+ if !slices.Contains(opts.SBOMSources, types.SBOMSourceRekor) {
519
analyzers = append(analyzers, analyzer.TypeExecutable)
520
521
0 commit comments