mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2026-05-28 12:56:15 +02:00
Compare commits
No commits in common. "main" and "v2.4.0" have entirely different histories.
4 changed files with 5 additions and 9 deletions
8
.github/workflows/pre-commit.yaml
vendored
8
.github/workflows/pre-commit.yaml
vendored
|
|
@ -27,13 +27,9 @@ jobs:
|
|||
sudo apt update && sudo apt install shellcheck
|
||||
|
||||
- name: Install hadolint
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
gh release download v2.14.0 --repo hadolint/hadolint --pattern "hadolint-linux-x86_64"
|
||||
mv hadolint-linux-x86_64 hadolint
|
||||
chmod +x hadolint
|
||||
sudo mv hadolint /usr/bin/
|
||||
curl -L "$(curl -s https://api.github.com/repos/hadolint/hadolint/releases/latest | grep -o -E -m 1 "https://.+?/hadolint-Linux-x86_64")" > hadolint \
|
||||
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
|
||||
# Need to success pre-commit fix push
|
||||
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
||||
with:
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ All notable changes to this project will be documented in this file.
|
|||
|
||||
### Features
|
||||
|
||||
* support .tofu files ([#6](https://github.com/tofuutils/pre-commit-opentofu/issues/6)) ([e059c58](https://github.com/tofuutils/pre-commit-opentofu/commit/e059c5859bceddf1ca018f55851f6940ad51f1c2))
|
||||
* spport .tofu files ([#6](https://github.com/tofuutils/pre-commit-opentofu/issues/6)) ([e059c58](https://github.com/tofuutils/pre-commit-opentofu/commit/e059c5859bceddf1ca018f55851f6940ad51f1c2))
|
||||
|
||||
# [2.0.0](https://github.com/tofuutils/pre-commit-opentofu/compare/v1.0.4...v2.0.0) (2024-09-25)
|
||||
|
||||
|
|
|
|||
|
|
@ -718,7 +718,7 @@ To replicate functionality in `tofu_docs` hook:
|
|||
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl
|
||||
```
|
||||
|
||||
3. By default, pre-commit-opentofu performs directory switching into the OpenTofu modules for you. If you want to delegate the directory changing to the binary - this will allow tflint to determine the full paths for error/warning messages, rather than just module relative paths. *Note: this requires `tflint>=0.44.0`.* For example:
|
||||
3. By default, pre-commit-opentofu performs directory switching into the OpenTofu modules for you. If you want to delgate the directory changing to the binary - this will allow tflint to determine the full paths for error/warning messages, rather than just module relative paths. *Note: this requires `tflint>=0.44.0`.* For example:
|
||||
|
||||
```yaml
|
||||
- id: tofu_tflint
|
||||
|
|
|
|||
|
|
@ -360,7 +360,7 @@ getopt() {
|
|||
}
|
||||
|
||||
_getopt_resolve_abbrev() {
|
||||
# Resolves an abbreviation from a list of possibilities.
|
||||
# Resolves an abbrevation from a list of possibilities.
|
||||
# If the abbreviation is unambiguous, echoes the expansion on stdout
|
||||
# and returns 0. If the abbreviation is ambiguous, prints a message on
|
||||
# stderr and returns 1. (For first parse this should convert to exit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue