mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(config): apply secrets to global hostRules (#16217)
* fix(config): apply secrets to global hostRules Closes #16215 * fix import ordering Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
parent
9c51ff6733
commit
54c35dbbd4
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
import os from 'os';
|
import os from 'os';
|
||||||
import fs from 'fs-extra';
|
import fs from 'fs-extra';
|
||||||
import upath from 'upath';
|
import upath from 'upath';
|
||||||
|
import { applySecretsToConfig } from '../../config/secrets';
|
||||||
import type { AllConfig, RenovateConfig } from '../../config/types';
|
import type { AllConfig, RenovateConfig } from '../../config/types';
|
||||||
import { logger } from '../../logger';
|
import { logger } from '../../logger';
|
||||||
import { initPlatform } from '../../modules/platform';
|
import { initPlatform } from '../../modules/platform';
|
||||||
|
@ -46,6 +47,7 @@ async function checkVersions(): Promise<void> {
|
||||||
function setGlobalHostRules(config: RenovateConfig): void {
|
function setGlobalHostRules(config: RenovateConfig): void {
|
||||||
if (config.hostRules) {
|
if (config.hostRules) {
|
||||||
logger.debug('Setting global hostRules');
|
logger.debug('Setting global hostRules');
|
||||||
|
applySecretsToConfig(config, undefined, false);
|
||||||
config.hostRules.forEach((rule) => hostRules.add(rule));
|
config.hostRules.forEach((rule) => hostRules.add(rule));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue