mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
fix: Update permissions for trustedFolders.json file to make it more … (#7685)
This commit is contained in:
@@ -169,7 +169,7 @@ describe('Trusted Folders Loading', () => {
|
||||
expect(mockFsWriteFileSync).toHaveBeenCalledWith(
|
||||
USER_TRUSTED_FOLDERS_PATH,
|
||||
JSON.stringify({ '/new/path': TrustLevel.TRUST_FOLDER }, null, 2),
|
||||
'utf-8',
|
||||
{ encoding: 'utf-8', mode: 0o600 },
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -150,7 +150,7 @@ export function saveTrustedFolders(
|
||||
fs.writeFileSync(
|
||||
trustedFoldersFile.path,
|
||||
JSON.stringify(trustedFoldersFile.config, null, 2),
|
||||
'utf-8',
|
||||
{ encoding: 'utf-8', mode: 0o600 },
|
||||
);
|
||||
} catch (error) {
|
||||
console.error('Error saving trusted folders file:', error);
|
||||
|
||||
Reference in New Issue
Block a user