Skip to content
play

GitHub Action

TFLint All-In-One

v1.0.0 Latest version

TFLint All-In-One

play

TFLint All-In-One

Scan Terraform Configuration Files

Installation

Copy and paste the following snippet into your .yml file.

              

- name: TFLint All-In-One

uses: infinite-automations/tflint-all-in-one@v1.0.0

Learn more about this action in infinite-automations/tflint-all-in-one

Choose a version

tflint-all-in-one

Semantic Release

Run common TFLint commands in a single GitHub action

Usage

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"

Inputs

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 .