Skip to content

fix(security): add .env exclusion patterns to root .gitignore - #47

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/vulnerability-finding-memory-8aa0
Draft

fix(security): add .env exclusion patterns to root .gitignore#47
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/vulnerability-finding-memory-8aa0

Conversation

@cursor

@cursor cursor Bot commented Jul 14, 2026

Copy link
Copy Markdown

Summary

Adds .env and .env.* patterns to the root .gitignore to prevent accidental commit of environment files containing API keys and secrets (e.g., GEMINI_API_KEY, RESEND_API_KEY, Firebase credentials).

Preserves .env.example files which serve as documentation templates.

Context

Identified during daily vulnerability scan as Finding #4 (medium severity). The root .gitignore previously only excluded .DS_Store, node_modules/, .wrangler/, .hermes/, and *.log — leaving .env files unprotected from accidental staging via git add -A.

Changes

  • Added .env pattern
  • Added .env.* glob pattern
  • Added !.env.example negation to preserve template files
Open in Web View Automation 

Prevents accidental commit of .env files containing API keys and other
secrets (GEMINI_API_KEY, RESEND_API_KEY, etc.). Preserves .env.example
files which serve as documentation templates.

Co-authored-by: CARBComplianceApp <CARBComplianceApp@users.noreply.github.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
dmc-properties 89fcffa Jul 14 2026, 09:14 AM

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.

1 participant