mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
930cf6633c
fix: Additional vi.mock path corrections and prettier formatting
16 lines
490 B
TypeScript
16 lines
490 B
TypeScript
import { AbstractMigration } from '../base/abstract-migration.ts';
|
|
|
|
export class TrustLevelMigration extends AbstractMigration {
|
|
override readonly deprecated = true;
|
|
override readonly propertyName = 'trustLevel';
|
|
|
|
override run(value: unknown): void {
|
|
// v8 ignore else -- TODO: add test #40625
|
|
if (value === 'high') {
|
|
this.setSafely('allowCustomCrateRegistries', true);
|
|
this.setSafely('allowScripts', true);
|
|
this.setSafely('exposeAllEnv', true);
|
|
}
|
|
}
|
|
}
|