Files
renovate/lib/config/migrations/custom/trust-level-migration.ts
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00

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);
}
}
}