Skip to content

Commit 330d805

Browse files
committed
fix: Update hadolint installation
Signed-off-by: Nikolai Mishin <sanduku.default@gmail.com>
1 parent ab333d7 commit 330d805

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@ jobs:
2727
sudo apt update && sudo apt install shellcheck
2828
2929
- name: Install hadolint
30+
env:
31+
GH_TOKEN: ${{ github.token }}
3032
run: |
31-
curl -L "$(curl -s https://api.github.com/repos/hadolint/hadolint/releases/latest | grep -o -E -m 1 "https://.+?/hadolint-Linux-x86_64")" > hadolint \
32-
&& chmod +x hadolint && sudo mv hadolint /usr/bin/
33+
gh release download --repo hadolint/hadolint --pattern "hadolint-linux-x86_64"
34+
mv hadolint-linux-x86_64 hadolint
35+
chmod +x hadolint
36+
sudo mv hadolint /usr/bin/
3337
# Need to success pre-commit fix push
3438
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3539
with:

0 commit comments

Comments
 (0)