Skip to content

Build(deps): bump hashicorp/google from 5.27.0 to 6.9.0 in /terraform #117

Build(deps): bump hashicorp/google from 5.27.0 to 6.9.0 in /terraform

Build(deps): bump hashicorp/google from 5.27.0 to 6.9.0 in /terraform #117

name: Terraform Lint
on:
pull_request:
paths:
- "terraform/**"
push:
branches:
- "main"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
terraform-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Cache plugin dir
id: cache-tflint-plugin
uses: actions/cache@v4
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('terraform/.tflint.hcl') }}
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: v0.46.1
- name: Init TFLint
if: steps.cache-tflint-plugin.outputs.cache-hit != 'true'
working-directory: terraform
run: tflint --init
env:
# https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/plugins.md#avoiding-rate-limiting
GITHUB_TOKEN: ${{ github.token }}
- name: Lint with tflint
working-directory: terraform
run: tflint --recursive
- name: Lint with tfsec
uses: aquasecurity/[email protected]
with:
working_directory: terraform