From fff9b71d59cc30fe021658dfd1fa9088b8fee1a9 Mon Sep 17 00:00:00 2001 From: supahgreg Date: Wed, 12 Nov 2025 17:27:40 +0000 Subject: [PATCH] Limit ShellCheck output to errors and warnings, split by shell type. --- .github/workflows/shell-code-quality.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/shell-code-quality.yml b/.github/workflows/shell-code-quality.yml index 571ad1330..ea4b5162f 100644 --- a/.github/workflows/shell-code-quality.yml +++ b/.github/workflows/shell-code-quality.yml @@ -34,5 +34,11 @@ jobs: continue-on-error: true run: | docker run --rm koalaman/shellcheck:stable --version - find .docker lib/dojo-src utils -type f -name '*.sh' -exec \ - docker run --rm -v "$PWD:/mnt" -w /mnt koalaman/shellcheck:stable --shell=busybox {} + + + # Scripts ran in the container (Alpine uses BusyBox to provide the ash shell [with bash compatibility enabled]) + find .docker -type f -name '*.sh' -exec \ + docker run --rm -v "$PWD:/mnt" -w /mnt koalaman/shellcheck:stable --severity=warning --shell=busybox {} + + + # Project utility scripts (use of bash or compatible assumed) + find lib/dojo-src utils -type f -name '*.sh' -exec \ + docker run --rm -v "$PWD:/mnt" -w /mnt koalaman/shellcheck:stable --severity=warning --shell=bash {} +