mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 07:29:00 -08:00
feat(misconf): Support private registries for misconf check bundle (#6327)
This commit is contained in:
@@ -584,7 +584,7 @@ func initScannerConfig(opts flag.Options, cacheClient cache.Cache) (ScannerConfi
|
||||
|
||||
var downloadedPolicyPaths []string
|
||||
var disableEmbedded bool
|
||||
downloadedPolicyPaths, err := operation.InitBuiltinPolicies(context.Background(), opts.CacheDir, opts.Quiet, opts.SkipPolicyUpdate, opts.MisconfOptions.PolicyBundleRepository)
|
||||
downloadedPolicyPaths, err := operation.InitBuiltinPolicies(context.Background(), opts.CacheDir, opts.Quiet, opts.SkipPolicyUpdate, opts.MisconfOptions.PolicyBundleRepository, opts.RegistryOpts())
|
||||
if err != nil {
|
||||
if !opts.SkipPolicyUpdate {
|
||||
log.Logger.Errorf("Falling back to embedded policies: %s", err)
|
||||
|
||||
Reference in New Issue
Block a user