A GitHub Action that runs tflint with reviewdog on pull requests to enforce Terraform best practices.
reviewdog/action-tflint is a GitHub Action that automatically runs tflint, a linter for Terraform code, on pull requests. It integrates with reviewdog to post findings as annotations or comments directly in GitHub, helping teams enforce best practices and catch infrastructure-as-code issues before merging.
DevOps engineers, platform teams, and developers who manage Terraform configurations and want to automate code quality checks in their CI/CD pipelines on GitHub.
It provides a pre-configured, easy-to-use action that combines the powerful Terraform linting of tflint with the flexible reporting of reviewdog, eliminating the need to manually set up and maintain this integration.
Run tflint with reviewdog on pull requests to enforce best practices
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Posts tflint findings directly as annotations or comments in pull requests, integrating code review into the familiar GitHub UI without extra tools.
Supports both github-pr-check for inline annotations and github-pr-review for PR comments, allowing teams to customize feedback based on workflow preferences.
Can install official tflint rulesets for providers like AWS and Google via tflint_rulesets input, enabling targeted linting for specific cloud services.
Allows targeting specific directories with tflint_target_dir and filtering by changed files using filter_mode, optimizing performance for large projects.
Exclusively designed for GitHub Actions, so it cannot be used with other version control systems or CI platforms without significant workarounds, limiting flexibility.
Requires manual steps like installing Terraform and initializing tflint with rulesets, as shown in the example, which adds overhead compared to drop-in solutions.
Only supports tflint for Terraform, so teams using multiple IaC tools need separate linting actions, increasing tool fragmentation and maintenance.