Commit 04c4c73
committed
chore: env allowlist + path-guard + token-guard + hooks .mts + bootstrap + cascade
Consolidated PR — combines the original work from #620, #621, #622
plus follow-up commits (private-name rule, socket-registry pin
cascades) into a single squashed commit.
Includes:
- env allowlist + .cache/ + CLAUDE.md hygiene (restore .cache/**
exclude in tsconfigs; propagate CLAUDE.md sorting/open-PR/paths/
inclusive-language/Set-sort/don't-revert-untouched/private-name
rules; replace whitelist/blacklist with allowlist/denylist)
- path-guard infra (PreToolUse hook + scripts/check-paths.mts gate +
.github/paths-allowlist.yml + /path-guard skill — enforces
"1 path, 1 reference" so multi-stage build paths are constructed
exactly once)
- token-guard hook (renamed from token-hygiene; word-boundary match
for sensitive env names; ALWAYS_DANGEROUS gates on hasRedaction so
redacted env dumps pass)
- .sh -> .mts hook conversion on Node 25+ (stable type stripping;
_helpers.mts hard-fails at module load if Node < 25; husky shims
invoke node directly)
- internal hook package rename (drop @socketsecurity/ scope from
hook-path-guard, hook-token-guard, hook-check-new-deps; private,
never published)
- xport lock-step manifest (scripts/xport.mts +
scripts/xport-schema.mts + scripts/xport-emit-schema.mts +
xport.schema.json)
- bootstrap-from-registry (scripts/bootstrap-from-registry.mts
downloads zero-dep Socket packages from npm registry into
node_modules/ via preinstall hook, solving fresh-clone
chicken-and-egg)
- socket-registry pins cascaded to ceab1e26 (picks up the
@socketsecurity/lib bootstrap move from the install action into
setup, so consumers calling only setup also benefit)1 parent 9d5f189 commit 04c4c73
49 files changed
Lines changed: 6833 additions & 480 deletions
File tree
- .claude
- agents
- hooks
- check-new-deps
- path-guard
- test
- token-guard
- test
- skills
- path-guard
- reference
- security-scan
- .config
- .git-hooks
- .github
- workflows
- .husky
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
0 commit comments