From e592b34ffcb7f29150ab0ec90a91d3a5cee89c7c Mon Sep 17 00:00:00 2001 From: m2dumpling Date: Sun, 27 Sep 2026 03:33:49 +0800 Subject: fix(debugging): avoid printing identity secrets in diagnostics (#2380) --- skills/systematic-debugging/SKILL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/systematic-debugging/SKILL.md b/skills/systematic-debugging/SKILL.md index 095d194..62fc752 100644 --- a/skills/systematic-debugging/SKILL.md +++ b/skills/systematic-debugging/SKILL.md @@ -88,11 +88,11 @@ You MUST complete each phase before proceeding to the next. ```bash # Layer 1: Workflow echo "=== Secrets available in workflow: ===" - echo "IDENTITY: ${IDENTITY:+SET}${IDENTITY:-UNSET}" + echo "IDENTITY: $([ -n "${IDENTITY:-}" ] && echo SET || echo UNSET)" # Layer 2: Build script echo "=== Env vars in build script: ===" - env | grep IDENTITY || echo "IDENTITY not in environment" + printenv IDENTITY >/dev/null 2>&1 && echo "IDENTITY in environment" || echo "IDENTITY not in environment" # Layer 3: Signing script echo "=== Keychain state: ===" -- cgit