Run common TFLint commands in a single GitHub action
name: "Lint"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Terraform Code
uses: "infinite-automations/tflint-all-in-one@v1.0.0"
with:
directory: "./terraform"
Input Name | Description | Required | Default |
---|---|---|---|
version | The version of TFLint to use | false | latest |
directory | The directory where the Terraform configuration files are located | false | . |