From 5f7b710a4c4fc8dda18a32cb4144d3bd63de442e Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Thu, 11 Feb 2021 17:49:52 +0100 Subject: [PATCH] fix(github): log token type correctly --- lib/platform/github/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/platform/github/index.ts b/lib/platform/github/index.ts index e741f2a65c..d2f92be8a6 100644 --- a/lib/platform/github/index.ts +++ b/lib/platform/github/index.ts @@ -391,7 +391,10 @@ export async function initRepo({ logger.debug('Using forkToken for git init'); parsedEndpoint.auth = config.forkToken; } else { - logger.debug('Using personal access token for git init'); + const tokenType = opts.token?.startsWith('x-access-token:') + ? 'app' + : 'personal access'; + logger.debug(`Using ${tokenType} token for git init`); parsedEndpoint.auth = opts.token; } parsedEndpoint.host = parsedEndpoint.host.replace( -- GitLab