Commit dd31532
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 are not blocked, and adds .env.precommit to the
allowlist alongside .env.example and .env.test. The previous regex
only blocked bare .env / .env.local at the repo root and would have
let through .env.production etc. — now blocks anything that doesn't
match the template allowlist at any depth.
Adds **/.cache/ to .gitignore as a defensive ignore for stray writers.1 parent d02e480 commit dd31532
2 files changed
Lines changed: 9 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 | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
| |||
0 commit comments