diff --git a/plugins/techdocs-backend/src/git-auth.ts b/plugins/techdocs-backend/src/git-auth.ts index d77596929f..b580a6f05b 100644 --- a/plugins/techdocs-backend/src/git-auth.ts +++ b/plugins/techdocs-backend/src/git-auth.ts @@ -93,7 +93,11 @@ export function getAzureHostToken( export const getTokenForGitRepo = async ( repositoryUrl: string, ): Promise => { - const config = await loadBackendConfig({ logger: getRootLogger() }); + // TODO(Rugvip): Config should not be loaded here, pass it in instead + const config = await loadBackendConfig({ + logger: getRootLogger(), + argv: process.argv, + }); const host = getGitHost(repositoryUrl); const type = getGitRepoType(repositoryUrl);