We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab333d7 commit 330d805Copy full SHA for 330d805
1 file changed
.github/workflows/pre-commit.yaml
@@ -27,9 +27,13 @@ jobs:
27
sudo apt update && sudo apt install shellcheck
28
29
- name: Install hadolint
30
+ env:
31
+ GH_TOKEN: ${{ github.token }}
32
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/
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/
37
# Need to success pre-commit fix push
38
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
39
with:
0 commit comments