Skip to content

Commit

Permalink
Fix #27 #28 (#31)
Browse files Browse the repository at this point in the history
* ignore more things

* fix #27

* go deeper to fix #27

* try that to fix #28

* use tail to just get one url, fix #28

* Apply automatic changes

* upgrade hooks to latest bc yolo

Co-authored-by: Linter Bot <[email protected]>
  • Loading branch information
sblack4 and actions-user authored Mar 16, 2021
1 parent 3cafe8a commit 0fd0313
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@

# .tfvars files
*.tfvars

# macs
.DS_Store

# temp folders
tmp
9 changes: 2 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.31.0
rev: v1.48.0
hooks:
- id: terraform_docs
always_run: true
args:
- --args=--sort-by-required
- id: terraform_fmt
- id: terraform_tflint
alias: terraform_tflint_deep
name: terraform_tflint_deep
args:
- --args=--deep
- id: terraform_tflint
alias: terraform_tflint_nocreds
name: terraform_tflint_nocreds
Expand Down Expand Up @@ -41,7 +36,7 @@ repos:
files: \.tf(vars)?$
exclude: examples
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.0.0
rev: v3.4.0
hooks:
- id: check-case-conflict
- id: check-json
Expand Down
1 change: 0 additions & 1 deletion .tflint.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
config {
module = true
deep_check = false
}

rule "terraform_deprecated_interpolation" {
Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ A bit about this module

No provider.

## Modules

| Name | Source | Version |
|------|--------|---------|
| tags | rhythmictech/tags/terraform | ~> 1.1.0 |

## Resources

No resources.

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -42,7 +52,6 @@ No provider.
| Name | Description |
|------|-------------|
| tags\_module | Tags Module in it's entirety |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Getting Started
Expand Down
3 changes: 2 additions & 1 deletion bin/install-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
echo 'installing dependencies'
sudo apt install python3-pip gawk &&\
pip3 install pre-commit
curl -L "$(curl -sL https://api.github.com/repos/segmentio/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64")" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
tfdocs_latest_dl_url=$(curl -sL https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64" | tail -n1)
curl -L "$tfdocs_latest_dl_url" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
curl -L "$(curl -sL https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
env GO111MODULE=on go get -u github.com/liamg/tfsec/cmd/tfsec
git clone https://github.com/tfutils/tfenv.git ~/.tfenv || true
Expand Down

0 comments on commit 0fd0313

Please sign in to comment.