diff --git a/src/components/codeContext.tsx b/src/components/codeContext.tsx index 357dd8454462e..b32704225cb1d 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, {