diff --git a/pkg/commands/artifact/run.go b/pkg/commands/artifact/run.go index 29e02f042db3..e4ee139a50a1 100644 --- a/pkg/commands/artifact/run.go +++ b/pkg/commands/artifact/run.go @@ -165,7 +165,7 @@ func (r *runner) Close(ctx context.Context) error { func (r *runner) ScanImage(ctx context.Context, opts flag.Options) (types.Report, error) { // Disable the lock file scanning - opts.DisabledAnalyzers = analyzer.TypeLockfiles + opts.DisabledAnalyzers = append(opts.DisabledAnalyzers, analyzer.TypeLockfiles...) var s InitializeScanner switch {