fix(core): restrict oauth_creds.json file permissions (#5245)

Co-authored-by: cornmander <shikhman@google.com>
This commit is contained in:
Brian de Alwis 2025-08-08 23:05:30 -04:00 committed by GitHub
parent c184ec3224
commit 191cc01bf5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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 {