From 8debd7f14e053ec3b0c719ae7704f7ac88772805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B0=D1=80=D1=83=D0=B1=D0=B8=D0=BD=20=D0=A4=D0=B8?= =?UTF-8?q?=D0=BB=D0=B8=D0=BF=D0=BF?= <289370046+zarubinphil@users.noreply.github.com> Date: Fri, 19 Jun 2026 18:30:59 +0300 Subject: [PATCH] fix(release): stop public-check flagging its own root@YOUR_VPS_HOST placeholder The `root@` private marker matched the literal placeholder used in the VPS config example and the poller/sync scripts, so the gate failed on a clean tree. Require a real host char (lowercase/digit) after `root@`; the uppercase `root@YOUR_VPS_HOST` placeholder no longer trips it, while a genuine `root@host` leak still does. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/check-public-release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/check-public-release.sh b/scripts/check-public-release.sh index aee07b3..05cc5ee 100755 --- a/scripts/check-public-release.sh +++ b/scripts/check-public-release.sh @@ -4,7 +4,9 @@ set -euo pipefail ROOT="${1:-$(cd "$(dirname "$0")/.." && pwd)}" # Private markers (machine paths, IPs, personal/project names) that must never ship publicly. -PRIVATE_MARKERS='/Users/fil|72\.56|root@|Полезные знания|_ВХОДЯЩИЕ|TODOCUPS|ПКК|legal-practice|Adventure Book|AthenaOS|Филипп' +# `root@` requires a real host char after it (lowercase/digit) so the literal +# placeholder `root@YOUR_VPS_HOST` in docs/examples is not a false positive. +PRIVATE_MARKERS='/Users/fil|72\.56|root@[a-z0-9]|Полезные знания|_ВХОДЯЩИЕ|TODOCUPS|ПКК|legal-practice|Adventure Book|AthenaOS|Филипп' # Token-like values across common providers. Require realistic lengths and a # non-word boundary before `sk-` to avoid false positives like `risk-or-x`. # Covers: GitHub OAuth/PAT (gho_/ghp_/ghu_/ghs_/ghr_), OpenAI/Anthropic sk-,