Update repo_health.yml

This commit is contained in:
2025-12-30 17:49:21 -06:00
parent f2b3add520
commit df518bca27

View File

@@ -747,13 +747,23 @@ PY
sudo apt-get update -qq
sudo apt-get install -y shellcheck >/dev/null
fi
sc_out="$(shellcheck -S warning -x scripts/**/*.sh 2>/dev/null || true)"
sc_out=''
while IFS= read -r shf; do
[ -z "${shf}" ] && continue
out_one="$(shellcheck -S warning -x "${shf}" 2>/dev/null || true)"
if [ -n "${out_one}" ]; then
sc_out="${sc_out}${out_one}\n"
fi
done < <(find scripts -type f -name '*.sh' 2>/dev/null | sort)
if [ -n "${sc_out}" ]; then
extended_findings+=("ShellCheck warnings detected (advisory)")
sc_head="$(printf '%s' "${sc_out}" | head -n 200)"
{
printf '%s\n' '### ShellCheck (advisory)'
printf '%s\n' '```'
printf '%s\n' "${sc_out}" | head -n 200
printf '%s\n' "${sc_head}"
printf '%s\n' '```'
printf '\n'
} >> "${GITHUB_STEP_SUMMARY}"