mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 15:06:27 +00:00
fix(config): don’t require token if in appMode
This commit is contained in:
parent
c7b8e79426
commit
1a610ff3f5
1 changed files with 9 additions and 7 deletions
|
@ -114,6 +114,7 @@ async function parseConfigs(env, argv) {
|
||||||
credentials.token = base64(`${username}:${password}`);
|
credentials.token = base64(`${username}:${password}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!global.appMode) {
|
||||||
if (!credentials.token) {
|
if (!credentials.token) {
|
||||||
throw new Error(`You need to supply a ${platformInfo.name} token.`);
|
throw new Error(`You need to supply a ${platformInfo.name} token.`);
|
||||||
}
|
}
|
||||||
|
@ -122,6 +123,7 @@ async function parseConfigs(env, argv) {
|
||||||
...credentials,
|
...credentials,
|
||||||
default: true,
|
default: true,
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
if (config.autodiscover) {
|
if (config.autodiscover) {
|
||||||
// Autodiscover list of repositories
|
// Autodiscover list of repositories
|
||||||
|
|
Loading…
Reference in a new issue