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

enhancement: terrascan improvements #3767

Merged
merged 3 commits into from
Jul 20, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- Reporters

- Fixes
- [terrascan](https://runterrascan.io/) fixed errors and removed redundant code

- Doc

Expand Down
21 changes: 8 additions & 13 deletions megalinter/descriptors/terraform.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ linters:
- COPY --link --from=tflint /usr/local/bin/tflint /usr/bin/

# TERRASCAN
- class: TerrascanLinter
linter_name: terrascan
- linter_name: terrascan
can_output_sarif: true
name: TERRAFORM_TERRASCAN
descriptor_flavors:
Expand All @@ -64,20 +63,16 @@ linters:
linter_rules_configuration_url: https://runterrascan.io/docs/usage/config_options/
linter_banner_image_url: https://raw.githubusercontent.com/tenable/runterrascan.io/main/static/images/TerrascanTM_BY_Logo.png
linter_icon_png_url: https://raw.githubusercontent.com/oxsecurity/megalinter/main/docs/assets/icons/linters/terrascan.png
config_file_name: terrascan-config.toml
cli_config_arg_name: --config-path
config_file_name: terrascan.toml
cli_config_arg_name: "--config-path"
cli_lint_mode: project
cli_lint_extra_args:
- "scan"
- "d"
- "."
- "-i"
- "terraform"
- "-t"
- "all"
- "-v"
- "scan"
- "--iac-type"
- "terraform"
- "--verbose"
cli_sarif_args:
- -o
- --output
- sarif
cli_version_arg_name: "version"
test_folder: terraform_terrascan
Expand Down
26 changes: 0 additions & 26 deletions megalinter/linters/TerrascanLinter.py

This file was deleted.