Emerald Red Team

ERT-SECRETS-011

.env missing from .gitignore

MediumA04:2025CWE-538

Why it matters

API keys in your JavaScript, .env files, .git folders, source maps. This check looks specifically for: .env missing from .gitignore.

How to fix it

Open the finding in Emerald Red Team for a fix prompt tailored to your stack and AI tool.

How we test it

Code — reads your connected repository.

Does your app have this problem?

Create a free account and verify your app to test for it.

Scan my app — free