|
197 | 197 | entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
198 | 198 | language: docker_image |
199 | 199 | args: [terraform, validate] |
| 200 | + pass_filenames: false |
200 | 201 | files: \.(tf|tofu|tfvars|terraform\.lock\.hcl)$ |
201 | 202 | exclude: \.terraform/.*$ |
202 | 203 |
|
|
215 | 216 | description: >- |
216 | 217 | Inserts input and output documentation into README.md using Docker. |
217 | 218 | require_serial: true |
218 | | - entry: terraform-docs |
| 219 | + entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
219 | 220 | language: docker_image |
220 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
221 | | - args: [markdown, table, --output-file, README.md, .] |
| 221 | + args: [terraform-docs, markdown, table, --output-file, README.md, .] |
222 | 222 | files: \.(tf|tofu|terraform\.lock\.hcl)$ |
223 | 223 | exclude: \.terraform/.*$ |
224 | 224 |
|
225 | 225 | - id: terraform_checkov_docker |
226 | 226 | name: Checkov (Docker) |
227 | 227 | description: Runs checkov on Terraform templates using Docker. |
228 | | - entry: checkov |
| 228 | + entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
229 | 229 | language: docker_image |
230 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
231 | | - args: [-d, .] |
| 230 | + args: [checkov, -d, .] |
232 | 231 | always_run: false |
233 | 232 | files: \.(tf|tofu)$ |
234 | 233 | exclude: \.terraform/.*$ |
|
239 | 238 | description: >- |
240 | 239 | Static analysis of Terraform templates to spot potential security issues using Docker. |
241 | 240 | require_serial: true |
242 | | - entry: trivy |
| 241 | + entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
243 | 242 | language: docker_image |
244 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
245 | | - args: [config, .] |
| 243 | + args: [trivy, config, .] |
246 | 244 | files: \.(tf|tofu|tfvars)$ |
247 | 245 | exclude: \.terraform/.*$ |
248 | 246 |
|
249 | 247 | - id: infracost_breakdown_docker |
250 | 248 | name: Infracost breakdown (Docker) |
251 | 249 | description: Check terraform infrastructure cost using Docker. |
252 | | - entry: infracost |
| 250 | + entry: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
253 | 251 | language: docker_image |
254 | | - docker_image: ghcr.io/actuarysailor/pre-commit-terraform-tools:latest |
255 | | - args: [breakdown, --path, .] |
| 252 | + args: [infracost, breakdown, --path, .] |
256 | 253 | require_serial: true |
257 | 254 | files: \.(tf|tofu|tfvars|hcl)$ |
258 | 255 | exclude: \.terraform/.*$ |
0 commit comments