Skip to content

Commit

Permalink
feat: initial scaffold for new linting
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-FFFFFF authored and lonegunmanb committed Dec 18, 2023
1 parent 82baaff commit 51a50db
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/actions/linting/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,26 @@ inputs:
runs:
using: composite
steps:
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: ">=1.5.0"
- name: grept
run: exit 0
shell: bash

- name: terraform init
run: terraform init
- name: terraform fmt check
run: exit 0
shell: bash

- name: terraform validate
run: terraform validate
run: exit 0
shell: bash

- uses: terraform-linters/setup-tflint@v3
name: Setup TFLint
with:
tflint_version: v0.48.0
env:
GITHUB_TOKEN: ${{ inputs.github-token }}

- name: get tflint config
run: |
curl --header "Authorization: Bearer ${{ inputs.github-token }}" https://raw.githubusercontent.com/Azure/terraform-azurerm-avm-template/main/.tflint.hcl -o .tflint.hcl
- name: terraform docs check
run: exit 0
shell: bash

- name: tflint init
run: tflint --init
- name: tflint
run: exit 0
shell: bash

- name: tflint
run: tflint
- name: tfsec
run: exit 0
shell: bash

0 comments on commit 51a50db

Please sign in to comment.