Skip to content

Commit

Permalink
enhancement: terrascan improvements (#3767)
Browse files Browse the repository at this point in the history
terrascan improvements

Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
  • Loading branch information
TommyE123 and echoix authored Jul 20, 2024
1 parent 1140e74 commit 932e931
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 39 deletions.
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.

0 comments on commit 932e931

Please sign in to comment.