Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

chore(ci): block owner/personal PII at PR time (prevent re-leak) (#530)

Aurora Capital5292808b9069
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index eb02cddb..d2967014 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -50,6 +50,18 @@ jobs:
- name: Run gitleaks
run: ./gitleaks detect --source . --config claude-ops/.gitleaks.toml --verbose
+ # Dedicated, INDEPENDENT gate against personal data (PII) reaching this PUBLIC
+ # repo — contributor usernames, home paths, personal emails, AWS account IDs,
+ # phone numbers. Runs with no `needs:` so it executes on every PR regardless of
+ # the secret-scan job's state. Catches the class that leaked into history
+ # (scrubbed 2026-06-07).
+ pii-gate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+ - name: PII / personal-data scan
+ run: bash claude-ops/tests/test-no-secrets.sh
+
test-suite:
runs-on: ${{ matrix.os }}
needs: lint-and-check
diff --git a/claude-ops/tests/test-no-secrets.sh b/claude-ops/tests/test-no-secrets.sh
index a02742d6..7519d1a8 100755
--- a/claude-ops/tests/test-no-secrets.sh
+++ b/claude-ops/tests/test-no-secrets.sh
@@ -21,6 +21,8 @@ echo ""
EXCLUDE_DIRS=(
"node_modules"
".git"
+ ".claude"
+ ".worktrees"
"tests"
)
@@ -106,6 +108,39 @@ scan_pattern "AWS secret access keys" '(?i)aws.{0,20}secret.{0,20}[A-Za-z0-9/+=]
# Generic high-entropy tokens with common prefixes
scan_pattern "org_ prefixed tokens (often API keys)" 'org_[a-zA-Z0-9]{20,}'
+# === Owner / personal PII (added 2026-06-07) ===
+# This class — a contributor's macOS username, personal email addresses, home
+# paths, and an internal AWS account id — leaked into history before there was a
+# gate for it. These checks fail CI if any of it reappears in the tree.
+# Allowlists keep generic placeholders (user, <user>, $HOME, runner) and the
+# project's own public maintainer contact ([email protected]).
+
+# macOS home-directory paths with a real-looking username
+scan_pattern "macOS home paths (/Users/<name>)" '/Users/[a-z][a-zA-Z0-9_.-]+' \
+ '/Users/(user|username|users|you|your[-_]?user|runner|shared|example|admin)([/"'\''[:space:]]|$)|/Users/[<$\{]'
+
+# Linux home-directory paths with a real-looking username
+scan_pattern "Linux home paths (/home/<name>)" '/home/[a-z][a-zA-Z0-9_.-]+/' \
+ '/home/(user|username|users|you|your[-_]?user|runner|ubuntu|ec2-user|ops|node|app|shared|example)/|/home/[<$\{]'
+
+# Personal / webmail email addresses
+scan_pattern "personal webmail addresses" \
+ '[a-zA-Z0-9._%+-]+@(gmail|yahoo|hotmail|outlook|icloud|proton|protonmail|hey)\.(com|net|org|me)' \
+ '@(example|test|localhost|noreply|anthropic)\.|\b(your|your\.address|youremail|someone|somebody|you|me|name|firstname|lastname|user|username|first\.last)@'
+
+# Owner brand-domain personal emails (the specific domains that leaked)
+scan_pattern "owner brand-domain emails" \
+ '[a-zA-Z0-9._%+-]+@(account-a|account-main|account-records|example)\.[a-z.]+'
+
+# AWS account IDs embedded in ARNs (12 digits)
+scan_pattern "AWS account IDs (ARN context)" \
+ 'arn:aws[a-z-]*:[a-z0-9-]*:[a-z0-9-]*:[0-9]{12}:' \
+ '(:000000000000:|:123456789012:)'
+
+# International phone numbers (allow reserved example ranges: 555-xxxx, 1234567, all-zero)
+scan_pattern "phone numbers (+<cc><digits>)" '\+[1-9][0-9]{1,3}[ -]?[0-9]{6,14}' \
+ '(555[0-9]{4}|1234567|\+1234567890|\+0000000000|\+15551234567|\+1[ -]?555)'
+
# --- Tests-only narrow sweep ---
# We allow regex literals + assembled patterns in tests/ but flag anything that
# looks like a literal high-value secret embedded in a test file.