Commit graph

528 commits

Author SHA1 Message Date
semantic-release-bot
ab333d78c6 chore(release): version 2.4.0 [skip ci] v2.4.0
# [2.4.0](https://github.com/tofuutils/pre-commit-opentofu/compare/v2.3.0...v2.4.0) (2026-05-25)

### Bug Fixes

* expand file extension patterns for tofu hooks ([451aaa5](451aaa59b5))

### Features

* support .tofu file extension and update hooks/tools ([9624cc8](9624cc8f24))
2026-05-25 22:53:37 +00:00
kvendingoldo
fb62c63c56
Merge pull request #74 from RoseSecurity/support-tofu-file-extensions
feat: Support `.tofu` file extensions and pre-commit clean ups
2026-05-26 02:53:14 +04:00
Michael Rosenfeld
9624cc8f24
feat: support .tofu file extension and update hooks/tools
Add support for the `.tofu` file extension in OpenTofu config
matching and documentation. Update pre-commit hooks, regex, and
README to reflect support for `.tofu` files alongside `.tf` and
`.tfvars`. Fix minor shell quoting and array assignment issues.
Upgrade pre-commit-hooks to v6.0.0.

Signed-off-by: Michael Rosenfeld <michael@rosesecurity.com>
2026-05-24 22:06:26 -04:00
Michael Rosenfeld
451aaa59b5
fix: expand file extension patterns for tofu hooks
Update file matching patterns in .pre-commit-hooks.yaml to support .tofu,
.tfvars, and other relevant extensions for OpenTofu workflows. Also clarify
log message in tofu_wrapper_module_for_each.sh for missing files.

Signed-off-by: Michael Rosenfeld <michael@rosesecurity.com>
2026-05-24 22:06:26 -04:00
semantic-release-bot
ba56661031 chore(release): version 2.3.0 [skip ci] v2.3.0
# [2.3.0](https://github.com/tofuutils/pre-commit-opentofu/compare/v2.2.2...v2.3.0) (2026-04-21)

### Features

* add terragrunt_validate_inputs hook ([0ca9eca](0ca9eca382))
2026-04-21 11:00:03 +00:00
kvendingoldo
10c515bc38
Merge pull request #72 from StorageMatt/feat/terragrunt-validate-inputs-hook
feat: Add terragrunt_validate_inputs hook
2026-04-21 14:59:35 +04:00
mketteringham
0ca9eca382 feat: add terragrunt_validate_inputs hook
Signed-off-by: mketteringham <mketteringham@williamhill.co.uk>
2026-04-21 11:42:58 +01:00
kvendingoldo
4adc698948
Merge pull request #66 from tofuutils/dependabot/github_actions/docker/login-action-4
gh-actions: bump docker/login-action from 3 to 4
2026-03-05 00:03:38 +04:00
dependabot[bot]
50351cae8e
gh-actions: bump docker/login-action from 3 to 4
Bumps [docker/login-action](https://github.com/docker/login-action) from 3 to 4.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-04 11:07:57 +00:00
kvendingoldo
aaa2fd5580
Merge pull request #64 from tofuutils/dependabot/github_actions/tj-actions/changed-files-47.0.5
gh-actions: bump tj-actions/changed-files from 47.0.0 to 47.0.5
2026-03-03 23:46:06 +04:00
dependabot[bot]
4f6be1dd0d
gh-actions: bump tj-actions/changed-files from 47.0.0 to 47.0.5
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 47.0.0 to 47.0.5.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](24d32ffd49...22103cc46b)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-version: 47.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-03 11:06:54 +00:00
kvendingoldo
bf25ff2f46
Merge pull request #50 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-6.0.0
gh-actions: bump cycjimmy/semantic-release-action from 5.0.2 to 6.0.0
2025-11-18 17:20:43 +04:00
kvendingoldo
09452c660e
Merge pull request #51 from tofuutils/dependabot/github_actions/actions/checkout-5.0.1
gh-actions: bump actions/checkout from 5.0.0 to 5.0.1
2025-11-18 17:20:29 +04:00
dependabot[bot]
624daa51ed
gh-actions: bump actions/checkout from 5.0.0 to 5.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v5.0.1)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 11:21:15 +00:00
dependabot[bot]
c3397c32d9
gh-actions: bump cycjimmy/semantic-release-action from 5.0.2 to 6.0.0
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 5.0.2 to 6.0.0.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](ba330626c4...b12c8f6015)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-18 11:21:09 +00:00
semantic-release-bot
10864545dd chore(release): version 2.2.2 [skip ci] v2.2.2
## [2.2.2](https://github.com/tofuutils/pre-commit-opentofu/compare/v2.2.1...v2.2.2) (2025-10-22)

### Bug Fixes

* replace deprecated hclfmt with hcl format command ([f1a589b](f1a589bd12))
2025-10-22 12:57:51 +00:00
kvendingoldo
a24fd775fb
Merge pull request #45 from widnyana/fix/hclfmt-deprecated
fix: Replace deprecated hclfmt with hcl format command
2025-10-22 16:57:10 +04:00
kvendingoldo
682111edbb
Merge pull request #48 from tofuutils/dependabot/github_actions/MaxymVlasov/dive-action-1.5.1
gh-actions: bump MaxymVlasov/dive-action from 1.5.0 to 1.5.1
2025-10-13 16:44:01 +04:00
dependabot[bot]
a3716be334
gh-actions: bump MaxymVlasov/dive-action from 1.5.0 to 1.5.1
Bumps [MaxymVlasov/dive-action](https://github.com/maxymvlasov/dive-action) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/maxymvlasov/dive-action/releases)
- [Commits](b08c8287e6...fafb796951)

---
updated-dependencies:
- dependency-name: MaxymVlasov/dive-action
  dependency-version: 1.5.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-13 12:21:03 +00:00
kvendingoldo
8ad84a44ef
Merge pull request #47 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-5.0.2
gh-actions: bump cycjimmy/semantic-release-action from 5.0.1 to 5.0.2
2025-10-10 19:10:36 +04:00
dependabot[bot]
430f50f0bd
gh-actions: bump cycjimmy/semantic-release-action from 5.0.1 to 5.0.2
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 5.0.1 to 5.0.2.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](ebcbc66374...ba330626c4)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 5.0.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-10 11:22:34 +00:00
kvendingoldo
93e26a60e7
Merge pull request #46 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-5.0.1
gh-actions: bump cycjimmy/semantic-release-action from 5.0.0 to 5.0.1
2025-10-09 19:59:42 +04:00
dependabot[bot]
211d65d43d
gh-actions: bump cycjimmy/semantic-release-action from 5.0.0 to 5.0.1
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](9cc899c47e...ebcbc66374)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 5.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-09 11:22:49 +00:00
widnyana
f1a589bd12
fix: replace deprecated hclfmt with hcl format command
Replace deprecated `terragrunt hclfmt` command with the recommended
`terragrunt hcl format` to eliminate deprecation warnings.

Resolves warning: "The `hclfmt` command is deprecated and will be
removed in a future version of Terragrunt."

Signed-off-by: widnyana <wid@widnyana.web.id>
2025-10-09 17:21:49 +07:00
kvendingoldo
16b5e9c289
Merge pull request #40 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-5.0.0
gh-actions: bump cycjimmy/semantic-release-action from 4.2.2 to 5.0.0
2025-10-02 14:38:22 +04:00
kvendingoldo
65db8f537f
Merge pull request #43 from tofuutils/dependabot/github_actions/tj-actions/changed-files-47.0.0
gh-actions: bump tj-actions/changed-files from 46.0.5 to 47.0.0
2025-09-15 20:58:34 +04:00
dependabot[bot]
f9d6074ab0
gh-actions: bump tj-actions/changed-files from 46.0.5 to 47.0.0
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 46.0.5 to 47.0.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](ed68ef82c0...24d32ffd49)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-version: 47.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-15 12:30:24 +00:00
kvendingoldo
701ddd21e1
Merge pull request #41 from tofuutils/dependabot/github_actions/actions/setup-python-6.0.0
gh-actions: bump actions/setup-python from 5.6.0 to 6.0.0
2025-09-04 22:51:34 +04:00
kvendingoldo
ecabde1843
Merge pull request #42 from tofuutils/dependabot/github_actions/actions/stale-10.0.0
gh-actions: bump actions/stale from 9.1.0 to 10.0.0
2025-09-04 22:51:28 +04:00
dependabot[bot]
f2b0eb603a
gh-actions: bump actions/stale from 9.1.0 to 10.0.0
Bumps [actions/stale](https://github.com/actions/stale) from 9.1.0 to 10.0.0.
- [Release notes](https://github.com/actions/stale/releases)
- [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
- [Commits](5bef64f19d...3a9db7e6a4)

---
updated-dependencies:
- dependency-name: actions/stale
  dependency-version: 10.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 14:02:40 +00:00
dependabot[bot]
84d857a5ae
gh-actions: bump actions/setup-python from 5.6.0 to 6.0.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.6.0 to 6.0.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](a26af69be9...e797f83bcb)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 6.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-04 13:18:51 +00:00
dependabot[bot]
a4ae94e826
gh-actions: bump cycjimmy/semantic-release-action from 4.2.2 to 5.0.0
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 4.2.2 to 5.0.0.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](16ca923e6c...9cc899c47e)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-01 23:11:04 +00:00
kvendingoldo
d581d5f42f
Merge pull request #39 from tofuutils/dependabot/github_actions/amannn/action-semantic-pull-request-6.1.1
gh-actions: bump amannn/action-semantic-pull-request from 5.5.3 to 6.1.1
2025-08-23 13:42:59 +04:00
dependabot[bot]
f81b28692c
gh-actions: bump amannn/action-semantic-pull-request from 5.5.3 to 6.1.1
Bumps [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) from 5.5.3 to 6.1.1.
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md)
- [Commits](0723387faa...48f256284b)

---
updated-dependencies:
- dependency-name: amannn/action-semantic-pull-request
  dependency-version: 6.1.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-22 11:43:05 +00:00
kvendingoldo
4a08fa44c1
Merge pull request #35 from tofuutils/dependabot/github_actions/actions/checkout-5
gh-actions: bump actions/checkout from 4 to 5
2025-08-13 02:24:15 +04:00
dependabot[bot]
b2658a3f8e
gh-actions: bump actions/checkout from 4 to 5
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-08-12 17:26:54 +00:00
kvendingoldo
3357820262
Merge pull request #32 from telepath/patch-1
Update README.md
2025-07-12 03:39:29 +04:00
kvendingoldo
bac5ee6be0
Merge pull request #33 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-4.2.2
gh-actions: bump cycjimmy/semantic-release-action from 4.2.1 to 4.2.2
2025-07-08 17:45:49 +04:00
dependabot[bot]
977d08e2d1
gh-actions: bump cycjimmy/semantic-release-action from 4.2.1 to 4.2.2
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 4.2.1 to 4.2.2.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](c4a2fa8906...16ca923e6c)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 4.2.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-07 14:24:37 +00:00
Benjamin Richter
d94583baf8
Update README.md
fix tofu_fmt heading
2025-06-18 12:24:20 +02:00
kvendingoldo
2bb866f953
Merge pull request #31 from tofuutils/dependabot/github_actions/cycjimmy/semantic-release-action-4.2.1
gh-actions: bump cycjimmy/semantic-release-action from 4.2.0 to 4.2.1
2025-06-09 20:46:17 +04:00
dependabot[bot]
407a900bbc
gh-actions: bump cycjimmy/semantic-release-action from 4.2.0 to 4.2.1
Bumps [cycjimmy/semantic-release-action](https://github.com/cycjimmy/semantic-release-action) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/cycjimmy/semantic-release-action/releases)
- [Changelog](https://github.com/cycjimmy/semantic-release-action/blob/main/docs/CHANGELOG.md)
- [Commits](0a51e81a6b...c4a2fa8906)

---
updated-dependencies:
- dependency-name: cycjimmy/semantic-release-action
  dependency-version: 4.2.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-09 12:28:37 +00:00
semantic-release-bot
04bfdda8eb chore(release): version 2.2.1 [skip ci] v2.2.1
## [2.2.1](https://github.com/tofuutils/pre-commit-opentofu/compare/v2.2.0...v2.2.1) (2025-06-04)

### Bug Fixes

* make infracost_breakdown.sh compatible with bash 3.2 (macOS) ([df886fa](df886fa772))
* Update pre-commit/action version ([#30](https://github.com/tofuutils/pre-commit-opentofu/issues/30)) ([44c7b5d](44c7b5dec9))
2025-06-04 08:26:32 +00:00
df886fa772 fix: make infracost_breakdown.sh compatible with bash 3.2 (macOS)
- Replace mapfile with while-read loop for bash 3.2 compatibility
- Fix substring expressions to avoid negative indices:
  (${check: -1} => ${check:$((${#check}-1)):1})
- Replace negative array indexing with explicit length calculation
- Maintain identical functionality while supporting macOS default bash
  version

Signed-off-by: Oliver Ladner <waste@lugh.ch>
2025-06-04 10:26:05 +02:00
Nikolai Mishin
44c7b5dec9
fix: Update pre-commit/action version (#30)
This is needed to switch to the new cache:
https://gh.io/gha-cache-sunset

Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
2025-06-04 00:11:35 +02:00
kvendingoldo
b73207253f
Merge pull request #26 from tofuutils/dependabot/github_actions/actions/stale-9.1.0
gh-actions: bump actions/stale from 9.0.0 to 9.1.0
2025-06-02 20:15:04 +04:00
kvendingoldo
f5f4fdf330
Merge pull request #27 from tofuutils/dependabot/github_actions/actions/setup-python-5.6.0
gh-actions: bump actions/setup-python from 5.0.0 to 5.6.0
2025-06-02 20:14:59 +04:00
kvendingoldo
5f888bddf6
Merge pull request #29 from tofuutils/dependabot/github_actions/tj-actions/changed-files-46
gh-actions: bump tj-actions/changed-files from 26.1 to 46
2025-06-02 20:14:53 +04:00
dependabot[bot]
98a556422a
gh-actions: bump tj-actions/changed-files from 26.1 to 46
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 26.1 to 46.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](58ae566dc6...ed68ef82c0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-version: '46'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 12:20:13 +00:00
dependabot[bot]
ed9b22cc37
gh-actions: bump actions/setup-python from 5.0.0 to 5.6.0
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5.0.0 to 5.6.0.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](0a5c615913...a26af69be9)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: 5.6.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-02 12:16:54 +00:00