This repository was archived by the owner on Apr 6, 2026. It is now read-only.
Bump the actions group across 1 directory with 2 updates #41
This file contains hidden or 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: Terraform Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - '**.tf' | |
| - '**.tfvars' | |
| - '.github/workflows/terraform-lint.yml' | |
| permissions: | |
| contents: read | |
| pull-requests: write # Needed for commenting on PRs | |
| jobs: | |
| tflint: | |
| name: TFLint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Setup TFLint | |
| uses: terraform-linters/setup-tflint@v6 | |
| with: | |
| tflint_version: v0.46.1 | |
| - name: Init TFLint | |
| run: tflint --init | |
| - name: Run TFLint | |
| id: tflint | |
| run: | | |
| tflint -f json > tflint_results.json || echo "TFLint found issues" | |
| tflint -f compact |