security: deescalate perm given in build-release.py

This commit is contained in:
dr-frmr 2024-11-11 15:25:00 -05:00
parent 348155e165
commit 446654a4fb
No known key found for this signature in database

View File

@ -60,7 +60,7 @@ def build_and_move(feature, tmp_dir, architecture, os_name):
source_path = f"target/release/{binary_name}" source_path = f"target/release/{binary_name}"
dest_path = os.path.join(tmp_dir, binary_name) dest_path = os.path.join(tmp_dir, binary_name)
shutil.move(source_path, dest_path) shutil.move(source_path, dest_path)
os.chmod(dest_path, 0o775) os.chmod(dest_path, 0o644)
# Create a zip archive of the binary # Create a zip archive of the binary
zip_path = os.path.join(tmp_dir, zip_name) zip_path = os.path.join(tmp_dir, zip_name)