Skip to content

Merge pull request #4 from datvo2k/dev #4

Merge pull request #4 from datvo2k/dev

Merge pull request #4 from datvo2k/dev #4

Workflow file for this run

name: Tflint Checks on Terraform Code
on:
push:
branches:
- main
permissions: read-all
jobs:
tflint-checks:
runs-on: ubuntu-latest
steps:
# Check Repository
- name: Check out Git Repository
uses: actions/checkout@v3
# TFLint - Terraform check
- name: Cache plugin dir
uses: actions/cache@v3
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v3
with:
tflint_version: v0.44.1
- name: Show version
run: tflint --version
- name: Init TFLint
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
- name: Run TFLint
run: tflint -f compact