Nikita Pivkin
39ccbf7b58
test(aws): move part of unit tests to integration ( #4884 )
...
* test(aws): move part of unit tests to integration
* fix typo
* fix test
---------
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2023-08-02 15:48:52 +00:00
Teppei Fukuda
20c2246a61
fix(report): close the file ( #4842 )
...
* fix(report): close the file
* refactor: add the format type
* fix: return errors in version printing
* fix: lint issues
* fix: do not fail on bogus cache dir
---------
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io >
2023-07-23 13:37:18 +00:00
simar7
4bc8d29c15
feat(misconf): Support custom data for rego policies for cloud ( #4745 )
...
* feat(misconf): Support custom data for cloud policies
Signed-off-by: Simar <simar@linux.com >
* use policyfs
Signed-off-by: Simar <simar@linux.com >
* refactor to reduce cyclomatic complexity
Signed-off-by: Simar <simar@linux.com >
* bump defsec
* update docs
Signed-off-by: Simar <simar@linux.com >
* update test assertion
Signed-off-by: Simar <simar@linux.com >
* update test
Need this as OPA is currently broken on Windows
https://github.com/open-policy-agent/opa/issues/4521
Signed-off-by: Simar <simar@linux.com >
* fix data path
* fix(mapfs): convert volume names into dirs
* revert creating temp dirs
---------
Signed-off-by: Simar <simar@linux.com >
Co-authored-by: Teppei Fukuda <knqyf263@gmail.com >
2023-07-17 12:34:20 +00:00
simar7
5d73b47dbc
feat(misconf): Support skipping services ( #4686 )
...
* feat(misconf): Add support for `--skip-service` flag.
Fixes: https://github.com/aquasecurity/trivy/issues/4619
Signed-off-by: Simar <simar@linux.com >
* update docs
Signed-off-by: Simar <simar@linux.com >
* update go mod
* refactor processOptions to reduce cyclo complexity
Signed-off-by: Simar <simar@linux.com >
* fix a bug with multiple skip services
Signed-off-by: Simar <simar@linux.com >
* refactor tests
Signed-off-by: Simar <simar@linux.com >
* use x/slice and x/xerrors
Signed-off-by: Simar <simar@linux.com >
* go mod tidy
* lint
---------
Signed-off-by: Simar <simar@linux.com >
2023-06-26 11:11:59 +00:00
simar7
aecd2f0bf0
feat(aws): Add support to see successes in results ( #4427 )
...
Fixes: https://github.com/aquasecurity/trivy/discussions/4417
Signed-off-by: Simar <simar@linux.com >
2023-06-13 17:36:05 +00:00
DmitriyLewen
27fb1bfdee
test(misconf): skip downloading of policies for tests #4126
2023-04-27 14:25:31 +03:00
simar7
33074cfab3
chore(deps): Move compliance types to defsec ( #3842 )
...
Signed-off-by: Simar <simar@linux.com >
2023-03-19 15:46:06 +02:00
Teppei Fukuda
cb5af0b33b
feat(image): add support for Docker CIS Benchmark ( #3496 )
...
Co-authored-by: chenk <hen.keinan@gmail.com >
2023-01-31 07:31:59 +02:00
simar7
a1d4427c8b
feat(misconf): Fetch policies from OCI registry ( #3015 )
...
Signed-off-by: Simar <simar@linux.com >
2023-01-15 13:37:04 +02:00
simar7
a3eece4fef
feat(misconf): Add compliance check support ( #3130 )
...
Signed-off-by: Simar <simar@linux.com >
Co-authored-by: knqyf263 <knqyf263@gmail.com >
2022-12-07 22:42:59 +02:00
Liam Galvin
b22e37e0c6
chore: Switch github.com/liamg dependencies to github.com/aquasecurity ( #3069 )
2022-10-25 11:17:47 +03:00
Liam Galvin
babd7e7526
feat(aws): Custom rego policies for AWS scanning ( #2994 )
2022-10-06 12:51:45 +03:00