From 27d9bb388098c6f1fdc78e10aab3d4df7853d851 Mon Sep 17 00:00:00 2001 From: Ella Harding Date: Thu, 20 Nov 2025 17:16:07 -0500 Subject: [PATCH] Fix file permissions for generated JSON files --- installer/data-downloader/backend/storage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/data-downloader/backend/storage.py b/installer/data-downloader/backend/storage.py index 7c18feb..018a80d 100644 --- a/installer/data-downloader/backend/storage.py +++ b/installer/data-downloader/backend/storage.py @@ -37,7 +37,9 @@ def _write_file(self, payload: dict) -> None: with NamedTemporaryFile("w", delete=False, dir=str(self.path.parent), encoding="utf-8") as tmp: json.dump(payload, tmp, indent=2, ensure_ascii=True) tmp.flush() - Path(tmp.name).replace(self.path) + tmp_path = Path(tmp.name) + tmp_path.chmod(0o664) + tmp_path.replace(self.path) class RunsRepository: