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) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
fbe205f3f1
commit
8debd7f14e
@@ -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-,
|
||||
|
||||
Reference in New Issue
Block a user