Skip to content

Commit 544a70d

Browse files
committed
fix gha and pre commit config
1 parent 562ee1a commit 544a70d

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

.github/workflows/validate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ on:
1010

1111
jobs:
1212
validate:
13-
uses: trussworks/shared-actions/.github/workflows/validate.yml@main
13+
uses: trussworks/shared-actions/.github/workflows/validate-tf.yml@main

.pre-commit-config.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.0.1
3+
rev: v4.4.0
44
hooks:
55
- id: check-json
66
- id: check-merge-conflict
@@ -10,13 +10,31 @@ repos:
1010
args:
1111
- --autofix
1212
- id: trailing-whitespace
13+
- id: check-symlinks
14+
- id: end-of-file-fixer
15+
- id: mixed-line-ending
16+
17+
- repo: https://github.com/executablebooks/mdformat
18+
rev: 0.7.16
19+
hooks:
20+
- id: mdformat
21+
additional_dependencies:
22+
- mdformat-gfm
23+
- mdformat-toc
24+
# mdformat fights with terraform_docs
25+
exclude: README.m(ark)?d(own)?
1326

1427
- repo: https://github.com/igorshubovych/markdownlint-cli
15-
rev: v0.28.1
28+
rev: v0.33.0
1629
hooks:
1730
- id: markdownlint
1831

32+
- repo: https://github.com/detailyang/pre-commit-shell
33+
rev: 1.0.5
34+
hooks:
35+
- id: shell-lint
36+
1937
- repo: https://github.com/antonbabenko/pre-commit-terraform
20-
rev: v1.75.0
38+
rev: v1.77.1
2139
hooks:
2240
- id: terraform_fmt

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module "trusted-advisor-refresh" {
2121
}
2222
```
2323

24-
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
24+
<!-- BEGIN_TF_DOCS -->
2525
## Requirements
2626

2727
| Name | Version |
@@ -70,4 +70,4 @@ No modules.
7070
## Outputs
7171

7272
No outputs.
73-
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
73+
<!-- END_TF_DOCS -->

main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,4 +146,3 @@ resource "aws_lambda_function" "main" {
146146
Environment = var.environment
147147
}
148148
}
149-

0 commit comments

Comments
 (0)