Skip to content

Commit 53ee71e

Browse files
committed
add scope to auth token creation
1 parent 50575e3 commit 53ee71e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/codeContext.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ export async function createOrgAuthToken({
258258
}): Promise<string | null> {
259259
const url = `${getHost()}/api/0/organizations/${orgSlug}/org-auth-tokens/`;
260260

261-
const body = {name};
261+
const body = {
262+
name,
263+
scopes: ['org:ci'],
264+
};
262265

263266
try {
264267
const resp = await fetch(url, {

0 commit comments

Comments
 (0)