ci: ancestor guard on DIFF_BASE; gate allowlists the owner's work email [ci skip]
Restarted infra pipelines after master moved diffed in REVERSE and re-applied stale trees (pipeline 148 reverted payslip-ingest's fresh ghcr config — repaired by the wave-2 agent). Only trust CI_PREV_COMMIT_SHA when it is an ancestor of HEAD. publish-gate: viktorbarzin@meta.com is the owner's own work email (same class as the allowlisted personal domain), not blockable PII — unblocks infra#18. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
cdd60d9078
commit
e696957ebf
2 changed files with 7 additions and 2 deletions
|
|
@ -46,7 +46,7 @@ fi
|
|||
say ""; say "-- PII heuristics (tracked files) --"
|
||||
cd "$CLONE"
|
||||
EMAILS=$(git grep -hoiE '[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}' -- ':!*.lock' ':!package-lock.json' ':!pnpm-lock.yaml' ':!.beads' 2>/dev/null \
|
||||
| grep -viE '@(viktorbarzin\.me|example\.(com|org|test)|test\.(com|local)|localhost|users\.noreply\.github\.com|googlegroups\.com)' \
|
||||
| grep -viE '@(viktorbarzin\.me|meta\.com|example\.(com|org|test)|test\.(com|local)|localhost|users\.noreply\.github\.com|googlegroups\.com)' \
|
||||
| grep -viE '^(noreply|no-reply|ci|admin|info|support|hello|user|foo|bar|test.*)@' \
|
||||
| sort -u | head -20)
|
||||
if [ -n "$EMAILS" ]; then say "real-looking emails found:"; say "$EMAILS"; say "(review: PII?)"; DIRTY=1; else say "emails: none beyond allowlist"; fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue