Skip to content

Commit

Permalink
fix incognito scans with upstream creds (#1157)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Milchev <ivan@mondoo.com>
  • Loading branch information
imilchev authored Mar 7, 2024
1 parent e436f0d commit de454e6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions policy/scan/local_scanner.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ func createReporter(ctx context.Context, job *Job, upstream *upstream.UpstreamCo
if err != nil {
return nil, err
}
for i := range bundle.Policies {
if bundle.Policies[i].Version == "n/a" {
bundle.Policies[i].Version = "0.0.0" // space policy has no version but we need it to compile it
}
}
job.Bundle = bundle // also update the job with the fetched bundle
reporter.AddBundle(bundle)
}
Expand Down

0 comments on commit de454e6

Please sign in to comment.