MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / ensureRestrictiveMode

Function ensureRestrictiveMode

src/lib/credentials.ts:130–134  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

128}
129
130export function ensureRestrictiveMode(path: string): void {
131 if (!existsSync(path)) return;
132 const overpermissive = (statSync(path).mode & 0o077) !== 0;
133 if (overpermissive) chmodSync(path, 0o600);
134}
135
136function resolvePath(options: CredentialsOptions): string {
137 return options.path ?? defaultCredentialsPath();

Callers 2

writeCredentialsAtomicFunction · 0.85

Calls 1

existsSyncFunction · 0.85

Tested by

no test coverage detected