From 3043188da203d6800779bb6272f06881fd68128c Mon Sep 17 00:00:00 2001 From: Parfii-bot Date: Fri, 1 May 2026 21:15:09 +0800 Subject: [PATCH] fix(ci): leak-check uses awk instead of sed (shellcheck SC2001) Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/leak-check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/leak-check.yml b/.github/workflows/leak-check.yml index c853871..6165de2 100644 --- a/.github/workflows/leak-check.yml +++ b/.github/workflows/leak-check.yml @@ -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-/memory/ -> ~/.claude/memory/"