File tree Expand file tree Collapse file tree 5 files changed +44
-0
lines changed
Expand file tree Collapse file tree 5 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 33- [ envsubst] ( ./envsubst )
44- [ kustomize] ( ./kustomize )
55- [ setup-sphynx] ( ./setup-sphynx )
6+ - [ tf-check] ( ./tf-check )
67
78## Release
89
Original file line number Diff line number Diff line change 1+ FROM ghcr.io/hpedrorodrigues/tf
2+ COPY entrypoint.sh /
3+ ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1+ # tf-check
2+
3+ Checks files recursively against a canonical format using [ Terraform] [ terraform ] , [ OpenTofu] [ opentofu ] and [ Terragrunt] [ terragrunt ] .
4+
5+ ## Usage
6+
7+ ``` yaml
8+ - name : Lint
9+ uses : hpedrorodrigues/actions/tf-check@v1.0.3
10+ ` ` `
11+
12+ [terraform]: https://www.terraform.io
13+ [opentofu]: https://opentofu.org
14+ [terragrunt]: https://terragrunt.gruntwork.io
Original file line number Diff line number Diff line change 1+ name : tf-check
2+ author : Pedro Rodrigues
3+ description : Checks files recursively against a canonical format.
4+ branding :
5+ icon : activity
6+ color : gray-dark
7+ runs :
8+ using : docker
9+ image : Dockerfile
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ set -o errexit
4+ set -o nounset
5+
6+ if ${VERBOSE:- false} ; then
7+ set -o xtrace
8+ fi
9+
10+ echo ' Checking Terraform files...'
11+ terraform fmt -check -recursive
12+
13+ echo ' Checking OpenTofu files...'
14+ tofu fmt -check -recursive
15+
16+ echo ' Checking Terragrunt files...'
17+ terragrunt hclfmt --terragrunt-check
You can’t perform that action at this time.
0 commit comments