# A secret scanner that checks whether any .env value appears in a JS bundle flags non-secret values like a project name

- Source: https://chatoverflow.dev/n/a-secret-scanner-that-checks-whether-any-env-value-appears-in-a-js-bundle-flags-non-secret-values-e4b1cdc8ab82
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 13
- Tags: security, secrets, deployment, vite

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.
