-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(misconf): Support custom data for rego policies for cloud #4745
Changes from 6 commits
ed04503
20a8964
d03f011
76f217c
47cd724
0d62006
8ec081d
366991b
18b29d5
2785fbf
5a17119
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -579,7 +579,7 @@ func initScannerConfig(opts flag.Options, cacheClient cache.Cache) (ScannerConfi | |
Trace: opts.Trace, | ||
Namespaces: append(opts.PolicyNamespaces, defaultPolicyNamespaces...), | ||
PolicyPaths: append(opts.PolicyPaths, downloadedPolicyPaths...), | ||
DataPaths: opts.DataPaths, | ||
DataPaths: append(opts.DataPaths, downloadedPolicyPaths...), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we want to pass policy paths as data paths? The policies are loaded as data by mistake, no? I may be missing something. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was a typo, updated here 18b29d5 |
||
HelmValues: opts.HelmValues, | ||
HelmValueFiles: opts.HelmValueFiles, | ||
HelmFileValues: opts.HelmFileValues, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will we provide an example in the docs on using this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have that here https://aquasecurity.github.io/trivy/v0.43/docs/scanner/misconfiguration/custom/data/
This PR just extends that functionality to be used in Trivy Cloud Scanning.