()
| 164 | * Returns an array of file paths that have gcpAuthRefresh. |
| 165 | */ |
| 166 | export function getGcpCommandsSources(): string[] { |
| 167 | const sources: string[] = [] |
| 168 | |
| 169 | const projectSettings = getSettingsForSource('projectSettings') |
| 170 | if (hasGcpCommands(projectSettings)) { |
| 171 | sources.push('.claude/settings.json') |
| 172 | } |
| 173 | |
| 174 | const localSettings = getSettingsForSource('localSettings') |
| 175 | if (hasGcpCommands(localSettings)) { |
| 176 | sources.push('.claude/settings.local.json') |
| 177 | } |
| 178 | |
| 179 | return sources |
| 180 | } |
| 181 | |
| 182 | /** |
| 183 | * Check if settings have dangerous environment variables configured. |
no test coverage detected