Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 870 Bytes

File metadata and controls

21 lines (18 loc) · 870 Bytes

This workflow automates terraform linter that checks for possible errors, best practices, etc in your terraform code Workflows have been added in .github/workflows/tflint.yml

Usage

TFLint is a framework and each feature is provided by plugins, the key features are as follows: Find possible errors (like invalid instance types) for Major Cloud providers (AWS/Azure/GCP). Warn about deprecated syntax, unused declarations. Enforce best practices, naming conventions.

Example

name:  TF-Lint
on:
  push:
    branches: [ master ]
  pull_request:
  workflow_dispatch:
jobs:
  tf-lint:
    uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master
    secrets:
      GITHUB: ${{ secrets.GITHUB }}