Skip to content

Commit 5db2131

Browse files
committed
Ensure discovered compilers are public readable
1 parent b5f5558 commit 5db2131

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/lib/cli/runner.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ def _s3_key_for(environment, version):
5454
return key
5555

5656

57+
_S3_CONFIG = dict(ACL="public-read", StorageClass="REDUCED_REDUNDANCY")
58+
59+
5760
@runner.command(name="uploaddiscovery")
5861
@click.argument("environment", required=True, type=click.Choice([env.value for env in EnvironmentNoRunner]))
5962
@click.argument("version", required=True)
@@ -63,7 +66,7 @@ def runner_uploaddiscovery(environment: str, version: str):
6366
get_remote_file(RunnerInstance.instance(), "/home/ce/discovered-compilers.json", temp_json_file.name)
6467
temp_json_file.seek(0)
6568
boto3.client("s3").put_object(
66-
Bucket="compiler-explorer", Key=_s3_key_for(environment, version), Body=temp_json_file
69+
Bucket="compiler-explorer", Key=_s3_key_for(environment, version), Body=temp_json_file, **_S3_CONFIG
6770
)
6871

6972

@@ -87,6 +90,7 @@ def runner_safeforprod(environment: str, version: str):
8790
Bucket="compiler-explorer",
8891
CopySource=dict(Bucket="compiler-explorer", Key=_s3_key_for(environment, version)),
8992
Key=_s3_key_for("prod", version),
93+
**_S3_CONFIG,
9094
)
9195

9296

0 commit comments

Comments
 (0)