From 108926950c6aae6b9a6cd857457f8e51c41efb0c Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 18 Apr 2024 23:05:44 +0200 Subject: [PATCH] Update dockerlint.yml Signed-off-by: Zoey --- .github/workflows/dockerlint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerlint.yml b/.github/workflows/dockerlint.yml index 47508e9..cbaf00b 100644 --- a/.github/workflows/dockerlint.yml +++ b/.github/workflows/dockerlint.yml @@ -19,9 +19,10 @@ jobs: DOCKERFILES="$(find . -name "*Dockerfile*")" for file in $(echo "$DOCKERFILES" | tr " " "\n"); do # DL3003 warning: Use WORKDIR to switch to a directory + # DL3007 warning: Using latest is prone to errors if the image will ever update. Pin the version explicitly to a release tag # DL3018 warning: Pin versions in apk add. Instead of `apk add ` use `apk add =` # DL3013 warning: Pin versions in pip. Instead of `pip install ` use `pip install ==` or `pip install --requirement ` - hadolint "$file" --ignore DL3003 --ignore DL3013 --ignore DL3018 | tee -a hadolint.log + hadolint "$file" --ignore DL3003 --ignore DL3007 --ignore DL3013 --ignore DL3018 | tee -a hadolint.log done if grep -q "DL[0-9]\+\|SC[0-9]\+" hadolint.log; then exit 1