(path: string)
| 128 | } |
| 129 | |
| 130 | export 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 | |
| 136 | function resolvePath(options: CredentialsOptions): string { |
| 137 | return options.path ?? defaultCredentialsPath(); |
no test coverage detected