All notable changes to this project will be documented in this file.
1.96.2 (2024-10-31)
1.96.1 (2024-09-17)
terraform_docs
: Fix issue with processing multiply files withoutterraform-docs
markers. Issue introduced in v1.95.0 (#720) (2b1aec8), closes #717 /github.com/antonbabenko/pre-commit-terraform/blob/869a106a4c8c48f34f58318a830436142e31e10a/hooks/terraform_docs.sh#L216
1.96.0 (2024-09-16)
- Expand environment variables in
--args=
which contains lowercase symbols, like${TF_VAR_lowercase}
(#719) (bf156b4)
1.95.0 (2024-09-11)
1.94.3 (2024-09-10)
terraform_docs
: Restore--hook-config=--add-to-existing-file
default behavior. Regression from 1.94.0. (#716) (315342e)
1.94.2 (2024-09-09)
1.94.1 (2024-08-30)
terraform_docs
: Fix non-GNU sed issues, introduced in v1.93.0, as previous fix doesn't work correctly (#708) (c986c5e)
1.94.0 (2024-08-29)
terraform-docs
: Add support forreplace
mode for TF 0.12+; Use native saving to file for TF 0.12+. Both requiresterraform-docs
v0.12.0+ which released in 2021. (#705) (1a1b4a3)
1.93.1 (2024-08-29)
1.93.0 (2024-08-28)
1.92.3 (2024-08-27)
1.92.2 (2024-08-16)
terraform_docs
: Fix issue and prioritizeoutput.file
setting from.terraform-docs.yml
config over--hook-config=--path-to-file=
(#698) (9d6a22b)
1.92.1 (2024-08-01)
terraform_docs
: Suppress "terraform command not found" error message in case binary does not exist (#693) (6ff3572)
1.92.0 (2024-06-19)
1.91.0 (2024-06-07)
1.90.0 (2024-05-23)
- Support set custom TF/OpenTofu binary. | If you use a custom Docker image build, please note that
TERRAFORM_VERSION
now must be provided (#670) (c7011c0)
1.89.1 (2024-04-25)
1.89.0 (2024-04-15)
- Hook terraform_wrapper_module_for_each should use versions.tf from the module if it exists (#657) (b127601)
1.88.4 (2024-03-25)
1.88.3 (2024-03-22)
terraform_providers_lock
: Requireterraform init
(andterraform_validate
hook) run when only lockfile changed (#649) (02c1935)
1.88.2 (2024-03-13)
- non-linux: Bash environment variables in arguments not expanded + Add
trace
log level (#645) (a2a2990)
1.88.1 (2024-03-11)
- docker: Checkov installation silently fails on
docker build
in arm64. Workaround till issue will be fixed incheckov
itself (#635) (f255b05)
1.88.0 (2024-02-22)
1.87.1 (2024-02-19)
1.87.0 (2024-02-17)
1.86.1 (2024-02-16)
1.86.0 (2023-12-21)
terraform_docs
: Addterraform-docs
default markers support and describe how to migrate to them (#609) (4a0e1fe)
1.85.0 (2023-12-15)
1.84.0 (2023-12-12)
1.83.6 (2023-11-16)
1.83.5 (2023-10-11)
1.83.4 (2023-09-22)
1.83.3 (2023-09-15)
1.83.2 (2023-09-04)
1.83.1 (2023-09-04)
1.83.0 (2023-08-25)
- Skip legacy modules (with provider block) in terraform_wrapper_module_for_each hook (#560) (456cc76)
1.82.0 (2023-08-15)
1.81.2 (2023-08-10)
1.81.1 (2023-08-10)
- Fix the terraform_wrapper_module_for_each hook for modules without outputs or variables (#552) (f24b3fa)
1.81.0 (2023-06-12)
- Speedup
terraform_validate
- firstly try run validate without checking is.terraform/
is valid (#524) (d0d08ac)
1.80.0 (2023-05-30)
1.79.1 (2023-05-09)
1.79.0 (2023-05-08)
1.78.0 (2023-04-28)
1.77.4 (2023-04-28)
1.77.3 (2023-04-21)
1.77.2 (2023-04-09)
1.77.1 (2023-02-03)
1.77.0 (2022-11-26)
1.76.1 (2022-11-26)
1.76.0 (2022-10-06)
1.75.0 (2022-09-07)
1.74.2 (2022-09-02)
1.74.1 (2022-07-13)
- Passed scenario in
terraform_docs
hook now works as expected (7ac2736)
1.74.0 (2022-07-12)
- Add
--env-vars
, deprecate--envs
(#410) (2b35cad) - Add
--tf-init-args
, deprecate--init-args
(#407) (c4f8251)
- Add support for set env vars inside hook runtime (#408) (d490231)
- Allow
terraform_providers_lock
specify terraform init args (#406) (32b232f) - Suppress color for all hooks if
PRE_COMMIT_COLOR=never
set (#409) (b12f0c6)
1.73.0 (2022-06-27)
1.72.2 (2022-06-21)
1.72.1 (2022-05-25)
1.72.0 (2022-05-25)
1.71.0 (2022-05-02)
1.70.1 (2022-04-28)
1.70.0 (2022-04-28)
1.69.0 (2022-04-26)
1.68.1 (2022-04-20)
1.68.0 (2022-04-18)
1.67.0 (2022-04-15)
1.66.0 (2022-04-13)
- Added support for
tfupdate
to update version constraints in Terraform configurations (#342) (ef7a0f2)
1.65.1 (2022-04-13)
1.65.0 (2022-04-13)
1.64.1 (2022-03-31)
1.64.0 (2022-02-10)
1.63.0 (2022-02-10)
1.62.3 (2021-12-22)
1.62.2 (2021-12-21)
- Properly exclude .terraform directory with checkov hook (#306) (b431a43)
- Speedup
terrascan
hook up to x3 times in big repos (#307) (2e8dcf9)
1.62.1 (2021-12-18)
1.62.0 (2021-12-12)
All notable changes to this project will be documented in this file.
v1.61.0 - 2021-12-11
- feat: Pass custom arguments to terraform init in
terraform_validate
hook (#293) - fix: analyse all folders with tflint and don't stop on first execution (#289)
v1.60.0 - 2021-12-08
- fix: pre-build docker image (#292)
v1.59.0 - 2021-12-06
- fix: Fixed docker build (#288)
v1.58.0 - 2021-11-20
- chore: Publish container image on release (#285)
- chore: Fix master merge to working branch on pre-commit autofixes (#286)
v1.57.0 - 2021-11-17
- fix: typo in arg name for terraform-docs (#283)
- chore: Add deprecation notice to
terraform_docs_replace
(#280)
v1.56.0 - 2021-11-08
- feat: Updated Docker image from Ubuntu to Alpine (#278)
- chore: Updated messages shown in terraform_tflint hook (#274)
v1.55.0 - 2021-10-27
- fix: Fixed 1.54.0 where
terraform_docs
was broken (#272)
v1.54.0 - 2021-10-27
- feat: Add support for quoted values in
infracost_breakdown
--hook-config
(#269) - docs: Added notes about sponsors (#268)
- fix: Fixed args expand in terraform_docs (#260)
v1.53.0 - 2021-10-26
- docs: Pre-release 1.53 (#267)
- docs: Clarify docs for terraform_tfsec hook (#266)
- feat: Add infracost_breakdown hook (#252)
- feat: Set up PR reviewers automatically (#258)
- docs: fix protocol to prevent MITM (#257)
- feat: add GIT_WORKING_DIR to tfsec (#255)
- docs: Add missing space in terrascan install cmd (#253)
- fix: command not found (#251)
- fix: execute tflint once in no errors (#250)
- docs: fix deps (#249)
- feat: Add
terraform_docs
hook settings (#245) - fix: terrafrom_tflint ERROR output for files located in repo root (#243)
- feat: Add support for specify terraform-docs config file (#244)
- docs: Document hooks dependencies (#247)
- feat: Allow passing of args to terraform_fmt (#147)
- docs: Add terraform_fmt usage instructions and how-to debug script with args (#242)
- fix: TFSec outputs the same results multiple times (#237)
- chore: Do not mark issues and PR's in milestone as stale (#241)
v1.52.0 - 2021-10-04
- feat: Add new hook for
terraform providers lock
operation (#173) - docs: Document terraform_tfsec args usage (#238)
- docs: Make contributors more visible (#236)
- docs: Add contributing guide and docs about performance tests (#235)
- fix: terraform_tflint hook executes in a serial way to run less often (#211)
- feat: Add PATH outputs when TFLint found any problem (#234)
- fix: Dockerfile if INSTALL_ALL is not defined (#233)
- docs: Describe hooks usage and improve examples (#232)
- chore: Add shfmt to workflow (#231)
- fix: remove dead code from terraform-docs script (#229)
v1.51.0 - 2021-09-17
- fix: trigger terraform-docs on changes in lock files (#228)
- fix: label auto-adding after label rename (#226)
- chore: Updated GH stale action config (#223)
- feat: Add GH checks and templates (#222)
- feat: Add mixed line ending check to prevent possible errors (#221)
- fix: Dockerized pre-commit-terraform (#219)
- docs: Initial docs improvement (#218)
- chore: Update Ubuntu install method (#198)
v1.50.0 - 2021-04-22
- feat: Adds support for Terrascan (#195)
v1.49.0 - 2021-04-20
- fix: Fix and pin versions in Dockerfile (#193)
- chore: Fix mistake on command (#185)
- Update README.md
v1.48.0 - 2021-03-12
v1.47.0 - 2021-02-25
- fix: remove sed postprocessing from the terraform_docs_replace hook to fix compatibility with terraform-docs 0.11.0+ (#176)
- docs: updates installs for macOS and ubuntu (#175)
v1.46.0 - 2021-02-20
- fix: Terraform validate for submodules (#172)
v1.45.0 - 2020-11-12
- fix: Correct deprecated parameter to terraform-docs (#156)
v1.44.0 - 2020-11-02
v1.43.1 - 2020-11-02
- feat: Make terraform_validate to run init if necessary (#158)
v1.43.0 - 2020-09-24
- fix: Fix regex considering terraform-docs v0.10.0 old (#151)
v1.42.0 - 2020-09-24
- fix: make terraform_docs Windows compatible (#129)
v1.41.0 - 2020-09-23
- fix: terraform-docs version 0.10 removed with-aggregate-type-defaults (#150)
v1.40.0 - 2020-09-22
- feat: Add possibility to share tflint config file for subdirs (#149)
v1.39.0 - 2020-09-08
- feat: Add checkov support (#143)
v1.38.0 - 2020-09-07
- fix: Correctly handle arrays in terraform_docs.sh (#141)
v1.37.0 - 2020-09-01
- fix: make terraform_tfsec.sh executable (#140)
v1.36.0 - 2020-09-01
- feat: have option for terraform_tfsec hook to only run in relevant modified directories (#135)
v1.35.0 - 2020-08-28
- fix: Squash terraform_docs bug (#138)
v1.34.0 - 2020-08-27
- chore: Use lib_getopt for all hooks and some style tweaks (#137)
v1.33.0 - 2020-08-27
- fix: Pass args and env vars to terraform validate (#125)
- docs: Update terraform-docs link pointing to new organization (#130)
v1.32.0 - 2020-08-19
- feat: add terragrunt validate hook (#134)
v1.31.0 - 2020-05-27
- fix: Updated formatting in README (closes #113)
- docs: Fixed the docs to use the latest config syntax(#106)
- docs: Added coreutils as requirements in README.md (#105)
v1.30.0 - 2020-04-23
- Updated pre-commit deps
- feat: Support for TFSec (#103)
v1.29.0 - 2020-04-04
- fix: Change terraform_validate hook functionality for subdirectories with terraform files (#100)
configuration for the appropriate working directory.
-
Neglected to change the terraform validate call to use the default of the current directory.
-
Several changes to improve functionality:
- Switch to checking the path for '*.tf' instead of always checking the current
directory.
- Try to find a '.terraform' directory (which indicates a
terraform init
) and
change to that directory before running terraform validate
.
-
Fix the description for the terraform_validate hook to reflect changes that were made in: https://github.com/antonbabenko/pre-commit-terraform/commit/35e0356188b64a4c5af9a4e7200d936e514cba71
-
- Clean up comments.
- Adjust variable names to better reflect what they are holding.
v1.28.0 - 2020-04-04
v1.27.0 - 2020-03-02
- corrected tflint documentation (#95)
v1.26.0 - 2020-02-21
- Updated pre-commit-hooks
- Fixed exit code for terraform 0.11 branch in terraform_docs (#94)
v1.25.0 - 2020-01-30
- Fixed tflint hook to iterate over files (#77)
v1.24.0 - 2020-01-21
- Added shfmt to autoformat shell scripts (#86)
v1.23.0 - 2020-01-21
- Added support for terraform-docs 0.8.0 with proper support for Terraform 0.12 syntax (bye-bye awk) (#85)
v1.22.0 - 2020-01-13
- move terraform-docs args after markdown command (#83)
v1.21.0 - 2019-11-16
- use getopt for args in the tflint hook, following the approach in terraform-docs (#75)
v1.20.0 - 2019-11-02
- Fixes #65: terraform-docs should not fail if complex types contain 'description' keyword (#73)
- Added FUNDING.yml
- Improve installation instructions and make README more readable (#72)
- Update rev in README.md (#70)
v1.19.0 - 2019-08-20
- Updated README with terraform_tflint hook
- Added support for TFLint with --deep parameter (#53)
v1.18.0 - 2019-08-20
- Updated README with terragrunt_fmt hook
- Formatter for Terragrunt HCL files (#60)
v1.17.0 - 2019-06-25
v1.16.0 - 2019-06-18
- Add slash to mktemp dir (fixed #50)
v1.15.0 - 2019-06-18
- Fixed awk script for terraform-docs (kudos @cytopia) and mktemp on Mac (closes #47, #48, #49)
- Fix version in README.md (#46)
v1.14.0 - 2019-06-17
- Upgraded to work with Terraform >= 0.12 (#44)
v1.13.0 - 2019-06-17
- Added support for terraform_docs for Terraform 0.12 (#45)
v1.12.0 - 2019-05-27
- Added note about incompatibility of terraform-docs with Terraform 0.12 (#41)
- Fixed broken "maintained badge"
- Update README.md (#36)
v1.11.0 - 2019-03-01
- Updated changelog
- fix check for errors at the end (#35)
v1.10.0 - 2019-02-21
- Bump new version
- Add exit code for 'terraform validate' so pre-commit check fails (#34)
v1.9.0 - 2019-02-18
- Added chglog (hi @robinbowes :))
- Require terraform-docs runs in serial to avoid pre-commit doing parallel operations on similar file paths
v1.8.1 - 2018-12-15
- Fix bug not letting terraform_docs_replace work in the root directory of a repo
v1.8.0 - 2018-12-14
- fix typo
- Address requested changes
- Add
--dest
argument - Address requested changes
- Add new hook for running terraform-docs with replacing README.md from doc in main.tf
v1.7.4 - 2018-12-11
- Merge remote-tracking branch 'origin/master' into pr25
- Added followup after #25
- Add feature to pass options to terraform-docs.
- Added license file (fixed #21)
v1.7.3 - 2018-05-24
- Updated README
- Only run validate if .tf files exist in the directory. (#20)
v1.7.2 - 2018-05-20
v1.7.1 - 2018-05-16
- Run terraform_docs only if README.md is present
- Run terraform_docs only if README.md is present
v1.7.0 - 2018-05-16
- Added terraform-docs integration (#13)
v1.6.0 - 2018-04-21
- Allow to have spaces in directories (#11)
v1.5.0 - 2018-03-06
- Bump new version
- Format tfvars files explicitely, because terraform fmt ignores them (#9)
v1.4.0 - 2018-01-24
- Updated readme
- Show failed path
- Show failed path
- Show failed path
- Updated scripts
- Added scripts to validate terraform files
v1.3.0 - 2018-01-15
v1.2.0 - 2017-06-08
- Renamed shell script file to the correct one
- Updated .pre-commit-hooks.yaml
- Updated sha in README
- Exclude .terraform even on subfolders
v1.1.0 - 2017-02-04
- Copied to .pre-commit-hooks.yaml for compatibility (closes #1)
- Updated README
- Ready, probably :)
- Initial commit
- Initial commit