tfsec is a linter for Security and Terraform.

You can enable the tfsec linter with:

trunk check enable tfsec

Auto Enabling

tfsec will never be auto-enabled. It must be enabled manually.


tfsec supports the following config files:

  • tfsec.yml

  • tfsec.yaml

  • .tfsec/config.json

  • .tfsec/config.yml

  • .tfsec/config.yaml

Unlike with most tools under trunk check, these files cannot be moved.

Last updated