Add some policy statements #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run TFLint check | |
on: | |
- push | |
jobs: | |
tflint-check: | |
name: Run TFLint check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup TFLint | |
uses: terraform-linters/setup-tflint@v4 | |
- name: Cache plugin dir | |
uses: actions/cache@v4 | |
with: | |
path: ~/.tflint.d/plugins | |
key: tflint-${{ hashFiles('.tflint.hcl') }} | |
- name: Show version | |
run: | | |
tflint --version | |
- name: Run init | |
run: | | |
tflint --init | |
- name: Run check | |
run: | | |
tflint --recursive --format=compact --no-color | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Run TFLint check |