mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
refactor: log npm auth
This commit is contained in:
parent
10b52cf93b
commit
048fd66124
1 changed files with 4 additions and 0 deletions
|
@ -67,6 +67,10 @@ async function getDependency(name, maxRetries = 5) {
|
|||
authInfo.type = 'Basic';
|
||||
}
|
||||
headers.authorization = `${authInfo.type} ${authInfo.token}`;
|
||||
logger.debug(
|
||||
{ token: maskToken(authInfo.token), npmName: name },
|
||||
'Using auth for npm lookup'
|
||||
);
|
||||
} else if (process.env.NPM_TOKEN && process.env.NPM_TOKEN !== 'undefined') {
|
||||
headers.authorization = `Bearer ${process.env.NPM_TOKEN}`;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue