chore(deps): update pre-commit hook antonbabenko/pre-commit-terraform to v1.84.0 #113
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: Test | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
branches: [main] | |
permissions: | |
contents: write | |
jobs: | |
init: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Terraform init | |
run: terraform init --upgrade --backend=false | |
- name: Auto commit | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_options: "--no-verify" | |
tflint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: terraform-linters/setup-tflint@v4 | |
- run: tflint --version | |
- run: tflint --init | |
env: | |
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting | |
GITHUB_TOKEN: ${{ github.token }} | |
- run: tflint -f compact | |
tfsec: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: aquasecurity/[email protected] | |
with: | |
github_token: ${{ github.token }} | |
docs: | |
runs-on: ubuntu-latest | |
needs: init | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- uses: terraform-docs/[email protected] | |
with: | |
git-push: true | |
jsonlint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run JSON Lint | |
# yamllint disable-line rule:line-length | |
run: bash <(curl -s https://raw.githubusercontent.com/CICDToolbox/json-lint/master/pipeline.sh) | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: yaml-lint | |
uses: ibiqlik/action-yamllint@v3 |