fix: Update hadolint installation

Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
This commit is contained in:
Nikolai Mishin 2026-05-26 23:40:30 +02:00 committed by Nikolai Mishin
commit c9cd4a805d

View file

@ -27,9 +27,13 @@ jobs:
sudo apt update && sudo apt install shellcheck
- name: Install hadolint
env:
GH_TOKEN: ${{ github.token }}
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 \
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
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/
# Need to success pre-commit fix push
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with: