Skip to content

chore(deps): bump hashicorp/random from 3.5.1 to 3.6.0 #71

chore(deps): bump hashicorp/random from 3.5.1 to 3.6.0

chore(deps): bump hashicorp/random from 3.5.1 to 3.6.0 #71

name: "Terraform Linting"
on:
pull_request:
branches:
- main
jobs:
tflint:
name: "TFLint"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ runner.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
restore-keys: |
${{ runner.os }}-tflint-
- uses: terraform-linters/setup-tflint@v4
name: Setup TFLint
- 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