fix(ci): leak-check uses awk instead of sed (shellcheck SC2001)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Parfii-bot 2026-05-01 21:15:09 +08:00
parent 4a4c9bdec4
commit afd34e3cbf

View file

@ -26,7 +26,7 @@ jobs:
hits=$(git ls-files | xargs grep -lE "$PATTERN" 2>/dev/null | grep -vE "$ALLOWLIST" || true)
if [[ -n "$hits" ]]; then
echo "::error::username-path leak detected"
echo "$hits" | sed 's/^/ /'
echo "$hits" | awk '{print " " $0}'
echo
echo "Replace absolute home paths with placeholders:"
echo " ~/.claude/projects/-Users-<user>/memory/ -> ~/.claude/memory/"