From f227906a754a5abb4174af7b75ecb15d480d0fec Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:51:10 -0400 Subject: [PATCH] Use google cloud platform scope instead of specific scopes for each service --- functions/gcloud.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/gcloud.ts b/functions/gcloud.ts index a73a21d..676594b 100644 --- a/functions/gcloud.ts +++ b/functions/gcloud.ts @@ -64,8 +64,7 @@ export async function GetAccessToken(env: Env): Promise { exp: Math.floor(Date.now() / 1000) + 120, iat: Math.floor(Date.now() / 1000), iss: env.WORKER_GSERVICEACCOUNT, - scope: - "https://www.googleapis.com/auth/datastore https://www.googleapis.com/auth/devstorage.read_write", + scope: "https://www.googleapis.com/auth/cloud-platform", }), ) .replaceAll("+", "-")