MCPcopy
hub / github.com/codeaashu/claude-code / getDangerousEnvVarsSources

Function getDangerousEnvVarsSources

src/components/TrustDialog/utils.ts:231–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

229 * Returns an array of file paths that have env vars not in SAFE_ENV_VARS.
230 */
231export function getDangerousEnvVarsSources(): string[] {
232 const sources: string[] = []
233
234 const projectSettings = getSettingsForSource('projectSettings')
235 if (hasDangerousEnvVars(projectSettings)) {
236 sources.push('.claude/settings.json')
237 }
238
239 const localSettings = getSettingsForSource('localSettings')
240 if (hasDangerousEnvVars(localSettings)) {
241 sources.push('.claude/settings.local.json')
242 }
243
244 return sources
245}
246

Callers 1

TrustDialogFunction · 0.85

Calls 3

getSettingsForSourceFunction · 0.85
hasDangerousEnvVarsFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected