From f495ba9c18f4295b1d43adc44d2c097587e0c480 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Thu, 22 Oct 2020 12:49:02 +0200 Subject: [PATCH] techdocs-backend: fix config loading in git-auth --- plugins/techdocs-backend/src/git-auth.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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);