Pii Gate

Installs a PII/secret gate into a git repo — pre-commit + pre-push hooks and a CI workflow that block personal names and secrets from reaching a remote. Fires BEFORE a repo can leak: on `git init`, "new repo", "set up a repo", "add a remote", "push this to GitHub", "publish this", "make this repo public", "first push", or "is it safe to push this?". Also fires on the retrofit case — an existing repo that already has a remote and needs the gate plus a full-history scan. Use when a repo will hold real names, client identifiers, addresses, or any personal context that must never enter git history. Covers denylist setup, the write-only `PII_DENYLIST` Actions secret, gitleaks secret scanning, and the armed-run proof that the gate actually blocks. Not for scanning a repo you are not about to push, and not a substitute for gitleaks alone.

bogheorghiu a8c13ad 18.6 KB Updated

File contents

bogheorghiu/ex-cog-dev/tree/main/security-toolkit/skills/pii-gate commit a8c13ad88b

Frequently asked questions

npx skillmds@latest add bogheorghiu/pii-gate