From 723173b11095f22aa64b4970f130ed5abf6bd86e Mon Sep 17 00:00:00 2001 From: Simon L Date: Tue, 26 Sep 2023 12:06:41 +0200 Subject: [PATCH] ignore DL4006 --- .github/workflows/docker-lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-lint.yml b/.github/workflows/docker-lint.yml index bef2d0a3e355..deff4cc53308 100644 --- a/.github/workflows/docker-lint.yml +++ b/.github/workflows/docker-lint.yml @@ -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