Skip to content

Commit f52327b

Browse files
committed
chore: harden .gitignore with safety patterns for secrets
Add catch-all patterns to prevent accidental commits of: - env files (.env, .env.*, *.env) - personal/local-only scripts (*.local.py, test_live*.py) - credentials/tokens (*secret*, *token*, *.key, *.pem) - internal docs (*_internal.md, INTERNAL_*)
1 parent a0164a4 commit f52327b

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.gitignore

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,38 @@ docs/*
3131
PRESENTATION.md
3232
scripts/full_test_bot.py
3333
scripts/button_test.py
34+
35+
# ── Safety net for secrets — never commit these ─────────────────────────
36+
.env
37+
.env.*
38+
*.env
39+
.envrc
40+
41+
# Personal / local-only scripts (never published)
42+
*.local.py
43+
*_local.py
44+
*_private.py
45+
local_*.py
46+
test_live*.py
47+
private_*.py
48+
49+
# Credentials / tokens / keys (any file with these names)
50+
*secret*
51+
*credentials*
52+
*credential*
53+
*token*
54+
*.key
55+
*.pem
56+
*.p12
57+
*.pfx
58+
*.cer
59+
*.crt
60+
config.json
61+
config.local.*
62+
settings.local.*
63+
64+
# Internal docs — anything explicitly marked private/internal
65+
*_internal.md
66+
*_private.md
67+
INTERNAL_*
68+
PRIVATE_*

0 commit comments

Comments
 (0)