Skip to content

Commit

Permalink
ignore DL4006
Browse files Browse the repository at this point in the history
  • Loading branch information
szaimen committed Sep 26, 2023
1 parent 3c6d788 commit 723173b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/docker-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
# DL3002 warning: Last USER should not be root
# DL3003 warning: Use WORKDIR to switch to a directory
# DL3004 error: Do not use sudo as it leads to unpredictable behavior. Use a tool like gosu to enforce root
hadolint "$file" --ignore DL3018 --ignore DL3008 --ignore DL3002 --ignore DL3003 --ignore DL3004 | tee -a ./hadolint.log
# DL4006 warning: Set the SHELL option -o pipefail before RUN with a pipe in it. If you are using /bin/sh in an alpine image or if your shell is symlinked to busybox then consider explicitly setting your SHELL to /bin/ash, or disable this check
hadolint "$file" --ignore DL3018 --ignore DL3008 --ignore DL3002 --ignore DL3003 --ignore DL3004 --ignore DL4006 | tee -a ./hadolint.log
done
cat ./hadolint.log
if grep -q "DL[0-9]\+\|SC[0-9]\+" ./hadolint.log; then
Expand Down

0 comments on commit 723173b

Please sign in to comment.