Commit f7edf84
committed
chore: harden .env allowlist in commit-msg hook + add **/.cache/ ignore
Switches the commit-msg .env check to basename-based matching so nested
.env.test files (e.g., .env.precommit, packages/<pkg>/.env.test) are
not blocked, and adds .env.precommit to the allowlist alongside
.env.example and .env.test. Previous regex was anchored to the repo
root and let through nested .env files entirely.
Adds **/.cache/ to .gitignore as a defensive ignore for stray writers
(Node compile-cache, corepack, pnpm RC). Tools we control already
write to node_modules/.cache/ which is covered by **/node_modules.1 parent 9d5f189 commit f7edf84
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
28 | 31 | | |
29 | 32 | | |
30 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | 67 | | |
| |||
0 commit comments