Skip to content

Commit

Permalink
Cleanup terrascan definition (#652)
Browse files Browse the repository at this point in the history
Remove terrascan configuration file since it is not read by default. In
order to specify a configuration file, users must override as follows:
Either
```yaml
lint:
  definitions:
    - name: terrascan
      direct_configs: [terrascan_config.toml]
      environment:
        - name: TERRASCAN_CONFIG
          value: ${workspace}/.trunk/configs/terrascan_config.toml
```

Or
```yaml
lint:
  definitions:
    - name: terrascan
      direct_configs: [terrascan_config.toml]
      commands:
        - name: lint
          run: terrascan scan -i terraform -c terrascan_config.toml --iac-file ${target} --output sarif
        - name: lint-docker
          run: terrascan scan -i docker -c terrascan_config.toml --iac-file ${target} --output sarif
```
  • Loading branch information
TylerJang27 committed Feb 16, 2024
1 parent f12c3f4 commit 271c36d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion linters/terrascan/plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ lint:
environment:
- name: PATH
list: ["${linter}"]
direct_configs: [terrascan_config.toml]

0 comments on commit 271c36d

Please sign in to comment.