From 53ee71e1eefa9f211daa6edb743596a0b8ce74d4 Mon Sep 17 00:00:00 2001 From: Charly Gomez Date: Wed, 4 Dec 2024 11:58:48 +0100 Subject: [PATCH] add scope to auth token creation --- src/components/codeContext.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/codeContext.tsx b/src/components/codeContext.tsx index 357dd8454462ec..b32704225cb1da 100644 --- a/src/components/codeContext.tsx +++ b/src/components/codeContext.tsx @@ -258,7 +258,10 @@ export async function createOrgAuthToken({ }): Promise { const url = `${getHost()}/api/0/organizations/${orgSlug}/org-auth-tokens/`; - const body = {name}; + const body = { + name, + scopes: ['org:ci'], + }; try { const resp = await fetch(url, {