()
| 41 | const SAFE_ENV_VALUES = new Set(["fixture", "test", "test-key"]) |
| 42 | |
| 43 | const envSecrets = () => |
| 44 | Object.entries(process.env).flatMap(([name, value]) => { |
| 45 | if (!value) return [] |
| 46 | if (!ENV_SECRET_NAMES.test(name)) return [] |
| 47 | if (value.length < 12) return [] |
| 48 | if (SAFE_ENV_VALUES.has(value.toLowerCase())) return [] |
| 49 | return [{ name, value }] |
| 50 | }) |
| 51 | |
| 52 | const pathFor = (base: string, key: string) => (base ? `${base}.${key}` : key) |
| 53 |