Skip to content

Commit

Permalink
feat(analyzers): take disabled analyzers into consideration when pass…
Browse files Browse the repository at this point in the history
…ed to the scanner as options

Signed-off-by: Andrei Aaron <[email protected]>
  • Loading branch information
andaaron committed Sep 28, 2023
1 parent daae882 commit 853441a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/artifact/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 853441a

Please sign in to comment.