Skip to content
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

chore: move checkov output to REPORT_FOLDER #3121

Merged
merged 6 commits into from Nov 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- New flavor **c_cpp**: New flavor for pure C/C++ projects
- Updated lintr config template to use `linters_with_defaults()` (formerly `with_defaults()`)
- Update base image to `python:3.11.6-alpine3.18`
- Write checkov SARIF report `results_sarif.sarif` in `REPORT_FOLDER`

- Fixes
- Fix issue Gitleaks `--no-git` does not work anymore, [#2945](https://github.com/oxsecurity/megalinter/issues/2945), in [PR 3112](https://github.com/oxsecurity/megalinter/pull/3112)
Expand Down
8 changes: 6 additions & 2 deletions megalinter/descriptors/repository.megalinter-descriptor.yml
Expand Up @@ -27,8 +27,12 @@ linters:
cli_lint_mode: project
cli_config_arg_name: "--config-file"
config_file_name: .checkov.yml
cli_sarif_args: ["--output", "sarif"]
sarif_default_output_file: ./results.sarif
cli_sarif_args:
- --output
- sarif
- --output-file-path
- "{{REPORT_FOLDER}}"
sarif_default_output_file: results_sarif.sarif
cli_lint_extra_args:
- "--directory"
- "."
Expand Down