Skip to content

Bump hashicorp/aws from 5.23.1 to 5.29.0 in /aws #2313

Bump hashicorp/aws from 5.23.1 to 5.29.0 in /aws

Bump hashicorp/aws from 5.23.1 to 5.29.0 in /aws #2313

Workflow file for this run

name: Pre-commit check
# Controls when the workflow will run
on:
pull_request:
branches: [master]
workflow_dispatch:
env:
TF_DOCS_VERSION: v0.16.0
TFSEC_VERSION: v1.27.6
TFLINT_VERSION: v0.41.0
permissions:
contents: read
jobs:
pre-commit:
name: Pre-commit check
runs-on: ubuntu-latest
steps:
- name: Checkout git repository
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- uses: actions/setup-java@v3
with:
distribution: 'oracle'
java-version: '21'
- name: Install npm dependencies
run: npm install
- uses: actions/cache@v3
name: Cache plugin dir
with:
path: ~/.tflint.d/plugins
key: ${{ matrix.os }}-tflint-${{ hashFiles('.tflint.hcl') }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.1.7
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: ${{env.TFLINT_VERSION}}
- name: Setup Terraform docs
run: |
wget https://github.com/terraform-docs/terraform-docs/releases/download/${{env.TF_DOCS_VERSION}}/terraform-docs-${{env.TF_DOCS_VERSION}}-linux-amd64.tar.gz -O terraform_docs.tar.gz
tar -zxvf terraform_docs.tar.gz terraform-docs
chmod +x terraform-docs
mv terraform-docs /usr/local/bin/
- name: Setup tfsec
run: |
curl --output tfsec https://github.com/aquasecurity/tfsec/releases/download/${{env.TFSEC_VERSION}}/tfsec-linux-amd64
chmod +x tfsec
mv tfsec /usr/local/bin/
- name: Pre-commit checks
uses: pre-commit/action@v3.0.0
- name: pre-commit-ci-lite
uses: pre-commit-ci/lite-action@v1.0.1
if: always()