Skip to content

chore(deps): update dependency hashicorp/terraform to v1.9.4 #549

chore(deps): update dependency hashicorp/terraform to v1.9.4

chore(deps): update dependency hashicorp/terraform to v1.9.4 #549

Workflow file for this run

---
name: Terraform
# yamllint disable-line rule:truthy
on:
pull_request:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
jobs:
validate:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
terraform: [1.0.0, latest]
directories: [".", "examples/cost", "examples/simple", "examples/full"]
defaults:
run:
working-directory: ${{ matrix.directories }}
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: hashicorp/setup-terraform@651471c36a6092792c552e8b1bef71e592b462d8 # v3.1.1
with:
terraform_version: ${{ matrix.terraform }}
- run: terraform -version
- run: terraform init -input=false -backend=false
- run: terraform validate
tflint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.config/tflint.hcl') }}
- name: configure aws credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
with:
role-to-assume: ${{ secrets.TFLINT_ROLE_ARN }}
role-session-name: tflint
aws-region: ${{ secrets.TFLINT_AWS_REGION }}
- name: install tflint
run: |
# renovate: datasource=github-tags depName=terraform-linters/tflint
tflint_version="v0.51.2"
curl -o tflint.zip -L https://github.com/terraform-linters/tflint/releases/download/${tflint_version}/tflint_linux_amd64.zip
unzip tflint.zip
- name: Show version
run: ./tflint --config=.config/tflint.hcl --version
- name: Init TFLint
run: ./tflint --config=.config/tflint.hcl --init
- name: Run TFLint
run: ./tflint --config=.config/tflint.hcl -f compact