fix(core): restrict oauth_creds.json file permissions (#5245)
Co-authored-by: cornmander <shikhman@google.com>
This commit is contained in:
parent
c184ec3224
commit
191cc01bf5
|
@ -366,7 +366,7 @@ async function cacheCredentials(credentials: Credentials) {
|
|||
await fs.mkdir(path.dirname(filePath), { recursive: true });
|
||||
|
||||
const credString = JSON.stringify(credentials, null, 2);
|
||||
await fs.writeFile(filePath, credString);
|
||||
await fs.writeFile(filePath, credString, { mode: 0o600 });
|
||||
}
|
||||
|
||||
function getCachedCredentialPath(): string {
|
||||
|
|
Loading…
Reference in New Issue