-
Notifications
You must be signed in to change notification settings - Fork 709
46 lines (38 loc) · 1021 Bytes
/
pr_lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# Copyright (c) Microsoft Corporation
# Licensed under the MIT License.
#
name: PR Tflint
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
env:
TF_VERSION: "1.8.4"
TF_LINT_VERSION: "v0.50.3"
jobs:
linting:
name: Format and Lint Checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: ${{ env.TF_VERSION }}
- name: Install Terraform Linter
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: ${{ env.TF_LINT_VERSION }}
- name: Run TFLint with reviewdog
uses: reviewdog/action-tflint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
level: info
tflint_init: true