Skip to content

Commit efdbd8f

Browse files
authoredAug 20, 2024··
feat(misconf): scanning support for YAML and JSON (#7311)
Signed-off-by: nikpivkin <[email protected]>
1 parent c5c62d5 commit efdbd8f

File tree

86 files changed

+1516
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+1516
-443
lines changed
 

‎docs/docs/coverage/iac/index.md

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ Trivy scans Infrastructure as Code (IaC) files for
1717
| [CloudFormation](cloudformation.md) | \*.yml, \*.yaml, \*.json |
1818
| [Azure ARM Template](azure-arm.md) | \*.json |
1919
| [Helm](helm.md) | \*.yaml, \*.tpl, \*.tar.gz, etc. |
20+
| [YAML][json-and-yaml] | \*.yaml, \*.yml |
21+
| [JSON][json-and-yaml] | \*.json |
2022

2123
[misconf]: ../../scanner/misconfiguration/index.md
2224
[secret]: ../../scanner/secret.md
25+
[json-and-yaml]: ../../scanner/misconfiguration/index.md#scan-arbitrary-json-and-yaml-configurations

‎docs/docs/references/configuration/cli/trivy_config.md

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ trivy config [flags] DIR
1717
--compliance string compliance report to generate
1818
--config-check strings specify the paths to the Rego check files or to the directories containing them, applying config files
1919
--config-data strings specify paths from which data for the Rego checks will be recursively loaded
20+
--config-file-schemas strings specify paths to JSON configuration file schemas to determine that a file matches some configuration and pass the schema to Rego checks for type checking
2021
--enable-modules strings [EXPERIMENTAL] module names to enable
2122
--exit-code int specify exit code when any security issues are found
2223
--file-patterns strings specify config file patterns

0 commit comments

Comments
 (0)