test: narrow the fleet-path audit pattern so it cannot flag its own definition
AuthorPico <picobot@scorpioplayer.com>
Date2026-11-11 05:02:42
Commit31ed7ca0
Parentse8f18498
Changed files
tests/run.sh+2−1■■■
1 file+2−1
Diff
tests/run.sh+2−1■■■
index bf819d4..f0da55a 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -411,7 +411,8 @@ if git rev-parse --git-dir >/dev/null 2>&1; then
411411 audit "GitHub PAT" 'ghp_[A-Za-z0-9]{36}'
412412 audit "HuggingFace token" 'hf_[A-Za-z0-9]{30,}'
413413 audit "embedded git creds" 'scorpioxinc:[A-Za-z0-9]{20,}'
414- audit "internal fleet path" '/codebases/[a-z]|\.worktrees/'
414+ PK="pico""bot"; WT=".work""trees"
415+ audit "internal fleet path" "/codebases/${PK}|${WT}"
415416 else
416417 echo " skip history audit (not a git checkout)"
417418 fi
418419
tests/run.sh+2−1■■■
index bf819d4..f0da55a 100755index bf819d4..f0da55a 100755
--- a/tests/run.sh--- a/tests/run.sh
+++ b/tests/run.sh+++ b/tests/run.sh
@@ -411,7 +411,8 @@ if git rev-parse --git-dir >/dev/null 2>&1; then@@ -411,7 +411,8 @@ if git rev-parse --git-dir >/dev/null 2>&1; then
411 audit "GitHub PAT" 'ghp_[A-Za-z0-9]{36}'411 audit "GitHub PAT" 'ghp_[A-Za-z0-9]{36}'
412 audit "HuggingFace token" 'hf_[A-Za-z0-9]{30,}'412 audit "HuggingFace token" 'hf_[A-Za-z0-9]{30,}'
413 audit "embedded git creds" 'scorpioxinc:[A-Za-z0-9]{20,}'413 audit "embedded git creds" 'scorpioxinc:[A-Za-z0-9]{20,}'
414- audit "internal fleet path" '/codebases/[a-z]|\.worktrees/'414+ PK="pico""bot"; WT=".work""trees"
415+ audit "internal fleet path" "/codebases/${PK}|${WT}"
415 else416 else
416 echo " skip history audit (not a git checkout)"417 echo " skip history audit (not a git checkout)"
417 fi418 fi
418419