Skip to content

Commit 5e776bf

Browse files
authored
Switch to latest hadolint-action in lint workflow (#214)
1 parent 8f8ce92 commit 5e776bf

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Lint
22

33
env:
4-
HADOLINT_VERSION: v1.17.2
54
SHELLCHECK_OPTS: -e SC1008 -s bash
65

76
on:
@@ -18,16 +17,7 @@ jobs:
1817
- name: Check out the repository
1918
uses: actions/checkout@v6.0.2
2019

21-
- name: Run linter
22-
id: changed_files
23-
run: |
24-
shopt -s globstar
25-
for dockerfile in **/Dockerfile; do
26-
echo "Linting: $dockerfile"
27-
docker run --rm -i \
28-
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \
29-
hadolint/hadolint:${{ env.HADOLINT_VERSION }} < "$dockerfile"
30-
done
20+
- uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0
3121
jq:
3222
runs-on: ubuntu-latest
3323
name: JQ
@@ -48,4 +38,3 @@ jobs:
4838

4939
- name: Run linter
5040
uses: ludeeus/action-shellcheck@2.0.0
51-

0 commit comments

Comments
 (0)