MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / writeFlatAuthFile

Function writeFlatAuthFile

apps/local/src/db/v1-v2-migration.ts:655–661  ·  view source on GitHub ↗
(path: string, values: Record<string, string>)

Source from the content-addressed store, hash-verified

653};
654
655const writeFlatAuthFile = (path: string, values: Record<string, string>): void => {
656 if (Object.keys(values).length === 0) return;
657 fs.mkdirSync(dirname(path), { recursive: true, mode: 0o700 });
658 const tmp = `${path}.tmp`;
659 fs.writeFileSync(tmp, `${JSON.stringify(values, null, 2)}\n`, { mode: 0o600 });
660 fs.renameSync(tmp, path);
661};
662
663const keychainBaseServiceName = (): string =>
664 process.env.EXECUTOR_KEYCHAIN_SERVICE_NAME?.trim() || "executor";

Callers 1

writeMigratedSecretsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected