()
| 199 | * Returns an array of file paths that have gcpAuthRefresh. |
| 200 | */ |
| 201 | export function getGcpCommandsSources(): string[] { |
| 202 | const sources: string[] = [] |
| 203 | |
| 204 | const projectSettings = getSettingsForSource('projectSettings') |
| 205 | if (hasGcpCommands(projectSettings)) { |
| 206 | sources.push(PROJECT_SETTINGS_DISPLAY_PATH) |
| 207 | } |
| 208 | |
| 209 | const localSettings = getSettingsForSource('localSettings') |
| 210 | if (hasGcpCommands(localSettings)) { |
| 211 | sources.push(LOCAL_SETTINGS_DISPLAY_PATH) |
| 212 | } |
| 213 | |
| 214 | return sources |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Check if settings have dangerous environment variables configured. |
no test coverage detected