-
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 824 Bytes
/
tflint.yml
File metadata and controls
35 lines (28 loc) · 824 Bytes
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
name: tflint
on:
push:
branches:
- main
paths:
- example/infra/**
- .github/workflows/tflint.yml
pull_request:
paths:
- example/infra/**
- .github/workflows/tflint.yml
jobs:
lints:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/cache@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
with:
path: ~/.tflint.d/plugins
key: tflint-v2-${{ hashFiles('.tflint.hcl') }}
restore-keys: |
tflint-v2-
- uses: terraform-linters/setup-tflint@4cb9feea73331a35b422df102992a03a44a3bb33 # v6.2.1
- run: tflint --init
working-directory: example/infra
- run: tflint -f compact
working-directory: example/infra