diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cef664f..26d8813 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,8 +8,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: TFLint - uses: docker://wata727/tflint + - uses: terraform-linters/setup-tflint@v4 + name: Setup TFLint + with: + tflint_version: v0.52.0 + - name: Init TFLint + 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: Run TFLint + run: tflint -f compact fmt: name: Code Format @@ -61,4 +70,4 @@ jobs: run: | sed -i -e 's/>=/=/' -e 's/ \(\d\+\.\d\+\)"/ \1.0"/' versions.tf terraform init - terraform validate -var "region=${AWS_REGION}" -var "vpc_id=vpc-123456" -var "subnets=[\"subnet-12345a\"]" -var "workers_ami_id=ami-123456" -var "cluster_ingress_cidrs=[]" -var "cluster_name=test_cluster" \ No newline at end of file + terraform validate -var "region=${AWS_REGION}" -var "vpc_id=vpc-123456" -var "subnets=[\"subnet-12345a\"]" -var "workers_ami_id=ami-123456" -var "cluster_ingress_cidrs=[]" -var "cluster_name=test_cluster" diff --git a/versions.tf b/versions.tf index a00cbc0..12ad22a 100644 --- a/versions.tf +++ b/versions.tf @@ -1,4 +1,3 @@ terraform { required_version = ">= 1.3.0" - -} \ No newline at end of file +}