From 9b2dac17371068e8f7d89f7c1eb44e5aa0d978bd Mon Sep 17 00:00:00 2001 From: Trivikram Kamat <16024985+trivikr@users.noreply.github.com> Date: Mon, 16 Sep 2024 14:50:35 -0700 Subject: [PATCH] chore: allow turbo remote cache write only on AWS Codebuild (#6481) --- scripts/turbo/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/turbo/index.js b/scripts/turbo/index.js index 8b101e64884d..e1086f8c7f0c 100644 --- a/scripts/turbo/index.js +++ b/scripts/turbo/index.js @@ -19,6 +19,9 @@ const runTurbo = async (task, args, apiSecret, apiEndpoint) => { TURBO_TOKEN: apiSecret, TURBO_TEAM: "aws-sdk-js", }), + ...(!process.env.CODEBUILD_BUILD_ARN && { + TURBO_REMOTE_CACHE_READ_ONLY: "1", + }), }, }); } catch (error) {