Skip to content

🔧 Fix Branch Name Not Displaying #653

🔧 Fix Branch Name Not Displaying

🔧 Fix Branch Name Not Displaying #653

Workflow file for this run

name: terraform-tools
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
tflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4.0.2
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}
- uses: terraform-linters/setup-tflint@v4.0.0
with:
tflint_version: "v0.49.0"
- run: tflint --version
- run: tflint -c $(realpath .tflint.hcl) --init
env:
GITHUB_TOKEN: ${{ github.token }} # https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
- run: rm -r modules/ # remove modules from being linted
- run: tflint -c $(realpath .tflint.hcl) -f compact --recursive