|
184 | 184 | name: Terraform fmt (Docker)
|
185 | 185 | description: >-
|
186 | 186 | Rewrites all Terraform configuration files to a canonical format using Docker.
|
| 187 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 188 | + if running on pre-commit.ci or other environments without Docker. |
187 | 189 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
188 | 190 | language: docker_image
|
189 | 191 | args: [terraform, fmt]
|
190 | 192 | files: \.(tf|tofu|tfvars|tftest\.hcl|tfmock\.hcl)$
|
191 | 193 | exclude: \.terraform/.*$
|
192 |
| - default: false |
193 | 194 |
|
194 | 195 | - id: terraform_validate_docker
|
195 | 196 | name: Terraform validate (Docker)
|
196 |
| - description: Validates all Terraform configuration files using Docker. |
| 197 | + description: >- |
| 198 | + Validates all Terraform configuration files using Docker. |
| 199 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 200 | + if running on pre-commit.ci or other environments without Docker. |
197 | 201 | require_serial: true
|
198 | 202 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
199 | 203 | language: docker_image
|
200 | 204 | args: [terraform, validate]
|
201 | 205 | pass_filenames: false
|
202 | 206 | files: \.(tf|tofu|tfvars|terraform\.lock\.hcl)$
|
203 | 207 | exclude: \.terraform/.*$
|
204 |
| - default: false |
205 | 208 |
|
206 | 209 | - id: terraform_tflint_docker
|
207 | 210 | name: Terraform validate with tflint (Docker)
|
208 |
| - description: Validates all Terraform configuration files with TFLint using |
209 |
| - Docker. |
| 211 | + description: >- |
| 212 | + Validates all Terraform configuration files with TFLint using Docker. |
| 213 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 214 | + if running on pre-commit.ci or other environments without Docker. |
210 | 215 | require_serial: true
|
211 | 216 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
212 | 217 | language: docker_image
|
213 | 218 | args: [tflint, --chdir=.]
|
214 | 219 | pass_filenames: false
|
215 | 220 | files: \.(tf|tofu|tfvars)$
|
216 | 221 | exclude: \.terraform/.*$
|
217 |
| - default: false |
218 | 222 |
|
219 | 223 | - id: terraform_docs_docker
|
220 | 224 | name: Terraform docs (Docker)
|
221 | 225 | description: >-
|
222 | 226 | Inserts input and output documentation into README.md using Docker.
|
| 227 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 228 | + if running on pre-commit.ci or other environments without Docker. |
223 | 229 | require_serial: true
|
224 | 230 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
225 | 231 | language: docker_image
|
226 | 232 | args: [terraform-docs, markdown, table, ., --output-file, README.md]
|
227 | 233 | pass_filenames: false
|
228 | 234 | files: \.(tf|tofu|terraform\.lock\.hcl)$
|
229 | 235 | exclude: \.terraform/.*$
|
230 |
| - default: false |
231 | 236 |
|
232 | 237 | - id: terraform_checkov_docker
|
233 | 238 | name: Checkov (Docker)
|
234 |
| - description: Runs checkov on Terraform templates using Docker. |
| 239 | + description: >- |
| 240 | + Runs checkov on Terraform templates using Docker. |
| 241 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 242 | + if running on pre-commit.ci or other environments without Docker. |
235 | 243 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
236 | 244 | language: docker_image
|
237 | 245 | args: [checkov, -d, .]
|
|
240 | 248 | files: \.(tf|tofu)$
|
241 | 249 | exclude: \.terraform/.*$
|
242 | 250 | require_serial: true
|
243 |
| - default: false |
244 | 251 |
|
245 | 252 | - id: terraform_trivy_docker
|
246 | 253 | name: Terraform validate with trivy (Docker)
|
247 | 254 | description: >-
|
248 | 255 | Static analysis of Terraform templates to spot potential security issues
|
249 | 256 | using Docker.
|
| 257 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 258 | + if running on pre-commit.ci or other environments without Docker. |
250 | 259 | require_serial: true
|
251 | 260 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
252 | 261 | language: docker_image
|
253 | 262 | args: [trivy, config, .]
|
254 | 263 | pass_filenames: false
|
255 | 264 | files: \.(tf|tofu|tfvars)$
|
256 | 265 | exclude: \.terraform/.*$
|
257 |
| - default: false |
258 | 266 |
|
259 | 267 | - id: infracost_breakdown_docker
|
260 | 268 | name: Infracost breakdown (Docker)
|
261 |
| - description: Check terraform infrastructure cost using Docker. |
| 269 | + description: >- |
| 270 | + Check terraform infrastructure cost using Docker. |
| 271 | + NOTE: Requires Docker to be available. Use 'skip' in .pre-commit-config.yaml |
| 272 | + if running on pre-commit.ci or other environments without Docker. |
262 | 273 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest
|
263 | 274 | language: docker_image
|
264 | 275 | args: [infracost, breakdown, --path, .]
|
265 | 276 | pass_filenames: false
|
266 | 277 | require_serial: true
|
267 | 278 | files: \.(tf|tofu|tfvars|hcl)$
|
268 | 279 | exclude: \.terraform/.*$
|
269 |
| - default: false |
|
0 commit comments