From 914bfbb8eb76d78c8aae1b9f26451814a32078d6 Mon Sep 17 00:00:00 2001 From: Federico Maleh Date: Fri, 3 Jul 2026 17:07:35 -0300 Subject: [PATCH] fix: split script_dirs into args so multiple dirs are scanned --- .github/workflows/shellcheck.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml index e7db2a2..88cbc66 100644 --- a/.github/workflows/shellcheck.yml +++ b/.github/workflows/shellcheck.yml @@ -28,7 +28,10 @@ jobs: SEVERITY: ${{ inputs.severity }} run: | if [ -n "$SCRIPT_DIRS" ]; then - find "$SCRIPT_DIRS" -type f -print0 | xargs -0 shellcheck --severity="$SEVERITY" + # Split the space-separated list into an array so each dir/file is a + # distinct find argument (quoting "$SCRIPT_DIRS" made it a single path). + read -ra dirs <<< "$SCRIPT_DIRS" + find "${dirs[@]}" -type f -print0 | xargs -0 shellcheck --severity="$SEVERITY" else find . -name "*.sh" -not -path "./.git/*" -print0 | xargs -0 shellcheck --severity="$SEVERITY" fi