Skip to content

fix(security): drop fake demo password and ignore real .env files - #1

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/stop-tracking-demo-secrets-d416
Aug 28, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/stop-tracking-demo-secrets-d416

Conversation

@manijose1919

Copy link
Copy Markdown
Owner

EnvGuard's demo project has to keep a committed .env so envguard scan demo and CI can reproduce planted drift. That file previously used SMTP_PASSWORD=hunter2, which secret scanners treat as a credential and which models a bad habit.

Changes

  • Replace the fake password with an empty placeholder (the demo now also shows the EMPTY finding).
  • Ignore real .env / .env.* files, with an explicit exception for the demo fixture and *.env.example.
  • Note in the README that demo/.env is a placeholder, not a secret.

22 tests pass; the demo scan still exits 1 on planted drift as CI requires.

Open in Web Open in Cursor 

demo/.env is a committed fixture for `envguard scan demo`, but it shipped
SMTP_PASSWORD=hunter2. Replace that with an empty placeholder (which also
surfaces the EMPTY finding) and ignore real .env files everywhere else.

Co-authored-by: manijose1919 <manijose1919@gmail.com>
@manijose1919
manijose1919 marked this pull request as ready for review August 28, 2026 19:29
@cursor
cursor Bot merged commit b15308c into main Aug 28, 2026
6 checks passed
@cursor
cursor Bot deleted the cursor/stop-tracking-demo-secrets-d416 branch August 28, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants