From cf37957212e878731979da6e288ebde4fa2e599f Mon Sep 17 00:00:00 2001 From: Jonathan Miller <230051081+jmiller-moko@users.noreply.github.com> Date: Sat, 27 Dec 2025 02:13:56 -0600 Subject: [PATCH] Update repo_health.yml --- .github/workflows/repo_health.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/repo_health.yml b/.github/workflows/repo_health.yml index 4ac3617..dc92e0e 100644 --- a/.github/workflows/repo_health.yml +++ b/.github/workflows/repo_health.yml @@ -116,7 +116,6 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Guardrails: release secrets and vars env: PROFILE_RAW: "${{ github.event.inputs.profile }}" @@ -411,12 +410,20 @@ PY exit 1 fi + sh_files="$(find scripts -type f -name '*.sh' 2>/dev/null || true)" + + if [ -z "${sh_files}" ]; then + echo "No shell scripts found under scripts/." >> "${GITHUB_STEP_SUMMARY}" + echo "Shell quality gate skipped." >> "${GITHUB_STEP_SUMMARY}" + exit 0 + fi + while IFS= read -r f; do [ -z "${f}" ] && continue bash -n "${f}" - done < <(find scripts -type f -name '*.sh' 2>/dev/null) + done <<< "${sh_files}" - shellcheck -x $(find scripts -type f -name '*.sh' 2>/dev/null) + shellcheck -x ${sh_files} echo "Shell quality gate passed." >> "${GITHUB_STEP_SUMMARY}"