From 1711cf6d760e89fe43e3673dbd8986e355876cca Mon Sep 17 00:00:00 2001 From: Bertrand THOMAS Date: Thu, 29 Oct 2026 12:50:08 +0100 Subject: [PATCH] Resolve the files a shell script sources from its own directory, so ShellCheck checks them rather than reporting them as not followed Co-Authored-By: Claude Opus 5.5 --- .github/workflows/reusable-markup-lint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-markup-lint.yml b/.github/workflows/reusable-markup-lint.yml index 04a5f22..0cfe603 100644 --- a/.github/workflows/reusable-markup-lint.yml +++ b/.github/workflows/reusable-markup-lint.yml @@ -64,4 +64,5 @@ jobs: exit 0 fi "$shellcheck" --version - "$shellcheck" "${scripts[@]}" + # A sourced file is resolved from the directory of its script, as it is at run time, so it is checked rather than reported as not followed. + "$shellcheck" --external-sources --source-path=SCRIPTDIR "${scripts[@]}"