Skip to content

Commit 51f7751

Browse files
committed
chore: ignore suffixed .env backups
**/*.env only matches names ending in .env, so hand-made backups like .env.pre-<date> and .env.bak-<date> were untracked but not ignored. This repo is public, and those files carry live API keys, so a blanket `git add` would have published them irrecoverably.
1 parent 0c1cdf6 commit 51f7751

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
# so they're baked into the wakeword-service image (and served to all clients).
99
!extras/wakeword-service/tones/*.wav
1010
**/*.env
11+
# Suffixed variants too. "**/*.env" only matches names ENDING in .env, so hand-made
12+
# backups (.env.pre-<date>, .env.bak-<date>) were untracked-but-not-ignored and a
13+
# blanket `git add` would have published live keys to this public repo.
14+
**/.env.*
1115
!**/.env.template
16+
!**/.env.test.template
1217
**/memory_config.yaml
1318
!**/memory_config.yaml.template
1419
tests/setup/.env.test

0 commit comments

Comments
 (0)