-
Notifications
You must be signed in to change notification settings - Fork 84
125 lines (112 loc) · 4.61 KB
/
tflint.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
name: TFLint
on:
push:
branches:
- main
pull_request:
paths:
- ".github/workflows/tflint.yml"
- "terraform-aws-github-runner/**"
jobs:
tflint:
name: TFLint
runs-on: ubuntu-latest
container: node:14
steps:
- uses: actions/checkout@v3
name: Checkout source code
- uses: terraform-linters/setup-tflint@v2
name: Setup TFLint
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Terraform
uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.5.1
terraform_wrapper: false
- name: Show version
run: tflint --version
- name: "Init TFLint download-lambda"
working-directory: terraform-aws-github-runner/modules/download-lambda
run: tflint --init
- name: "Init terraform download-lambda"
working-directory: terraform-aws-github-runner/modules/download-lambda
run: terraform init
- name: "Run TFLint download-lambda"
working-directory: terraform-aws-github-runner/modules/download-lambda
run: tflint --module
- name: "Run terraform validate download-lambda"
working-directory: terraform-aws-github-runner/modules/download-lambda
run: terraform validate
- name: "Init TFLint runner-binaries-syncer"
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
run: tflint --init
- name: "Init terraform runner-binaries-syncer"
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
run: terraform init
- name: "Run TFLint runner-binaries-syncer"
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
run: tflint --module
- name: "Run terraform validate runner-binaries-syncer"
working-directory: terraform-aws-github-runner/modules/runner-binaries-syncer
run: terraform validate
- name: "Init TFLint runners-instances"
working-directory: terraform-aws-github-runner/modules/runners-instances
run: tflint --init
- name: "Init terraform runners-instances"
working-directory: terraform-aws-github-runner/modules/runners-instances
run: terraform init
- name: "Run TFLint runners-instances"
working-directory: terraform-aws-github-runner/modules/runners-instances
run: tflint --module
- name: "Run terraform validate runners-instances"
working-directory: terraform-aws-github-runner/modules/runners-instances
run: terraform validate
- name: "Init TFLint runners"
working-directory: terraform-aws-github-runner/modules/runners
run: tflint --init
- name: "Init terraform runners"
working-directory: terraform-aws-github-runner/modules/runners
run: terraform init
- name: "Run TFLint runners"
working-directory: terraform-aws-github-runner/modules/runners
run: tflint --module
- name: "Run terraform validate runners"
working-directory: terraform-aws-github-runner/modules/runners
run: terraform validate
- name: "Init TFLint setup-iam-permissions"
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
run: tflint --init
- name: "Init terraform setup-iam-permissions"
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
run: terraform init
- name: "Run TFLint setup-iam-permissions"
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
run: tflint --module
- name: "Run terraform validate setup-iam-permissions"
working-directory: terraform-aws-github-runner/modules/setup-iam-permissions
run: terraform validate
- name: "Init TFLint webhook"
working-directory: terraform-aws-github-runner/modules/webhook
run: tflint --init
- name: "Init terraform webhook"
working-directory: terraform-aws-github-runner/modules/webhook
run: terraform init
- name: "Run TFLint webhook"
working-directory: terraform-aws-github-runner/modules/webhook
run: tflint --module
- name: "Run terraform validate webhook"
working-directory: terraform-aws-github-runner/modules/webhook
run: terraform validate
- name: "Init TFLint main"
working-directory: terraform-aws-github-runner
run: tflint --init
- name: "Init terraform main"
working-directory: terraform-aws-github-runner
run: terraform init
- name: "Run TFLint main"
working-directory: terraform-aws-github-runner
run: tflint --module
- name: "Run terraform validate terraform-aws-github-runner"
working-directory: terraform-aws-github-runner
run: terraform validate