Skip to content

Commit

Permalink
fix(github): log token type correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 11, 2021
1 parent 264ff28 commit 5f7b710
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/platform/github/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5f7b710

Please sign in to comment.