Skip to content

Commit

Permalink
🐛 fix incognito flag failing out when no creds to platform
Browse files Browse the repository at this point in the history
  • Loading branch information
vjeffrey committed Oct 3, 2023
1 parent 429a0d9 commit 8aa42c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions explorer/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,8 @@ func (s *LocalScanner) RunIncognito(ctx context.Context, job *Job) (*explorer.Re
return nil, errors.New("no context provided to run job with local scanner")
}

upstreamConfig, err := s.getUpstreamConfig(job.Inventory, true)
if err != nil {
return nil, err
}
// skip the error check, we are running in incognito
upstreamConfig, _ := s.getUpstreamConfig(job.Inventory, true)
reports, _, err := s.distributeJob(job, ctx, upstreamConfig)
if err != nil {
return nil, err
Expand Down

0 comments on commit 8aa42c1

Please sign in to comment.