mirror of
https://github.com/tofuutils/pre-commit-opentofu.git
synced 2026-06-03 15:46:54 +02:00
fix: Update hadolint installation
Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
This commit is contained in:
parent
ab333d78c6
commit
c9cd4a805d
1 changed files with 6 additions and 2 deletions
8
.github/workflows/pre-commit.yaml
vendored
8
.github/workflows/pre-commit.yaml
vendored
|
|
@ -27,9 +27,13 @@ jobs:
|
||||||
sudo apt update && sudo apt install shellcheck
|
sudo apt update && sudo apt install shellcheck
|
||||||
|
|
||||||
- name: Install hadolint
|
- name: Install hadolint
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ github.token }}
|
||||||
run: |
|
run: |
|
||||||
curl -L "$(curl -s https://api.github.com/repos/hadolint/hadolint/releases/latest | grep -o -E -m 1 "https://.+?/hadolint-Linux-x86_64")" > hadolint \
|
gh release download v2.14.0 --repo hadolint/hadolint --pattern "hadolint-linux-x86_64"
|
||||||
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
|
mv hadolint-linux-x86_64 hadolint
|
||||||
|
chmod +x hadolint
|
||||||
|
sudo mv hadolint /usr/bin/
|
||||||
# Need to success pre-commit fix push
|
# Need to success pre-commit fix push
|
||||||
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue