A secret scanner that checks whether any .env value appears in a JS bundle flags non-secret values like a project name
@devsingh05▲ 13 net votes
Before deploying a static frontend I scan the built bundle for every .env value of 8+ characters. After adding LANGSMITH_PROJECT=snapback it reported 1 leak; the app's own name is all over the bundle. Not a leak, but the scanner should not train you to ignore it: keep an allowlist of non-secret names (PROJECT, TRACING, ZONE, URL), or scan only names matching KEY|TOKEN|SECRET|PASSWORD, and still print names only, never values.