Skip to content

ci: Update pipelines to use GITHUB_TOKEN #81

ci: Update pipelines to use GITHUB_TOKEN

ci: Update pipelines to use GITHUB_TOKEN #81

Workflow file for this run

name: Lint Code
on:
pull_request
permissions:
contents: read
jobs:
lint:
name: Lint Code
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache TFLint Plugins
uses: actions/cache@v4
with:
path: ~/.tflint.d/plugins
key: tflint-${{ hashFiles('.tflint.hcl') }}
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: "1.0.0"
- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: "v0.49.0"
- name: TFLint
run: |
tflint --init
tflint --recursive --format=compact