From b9b2862341efe51f03af4f31db3cbfbd162cd4c3 Mon Sep 17 00:00:00 2001 From: Joyce Er Date: Wed, 1 Jun 2022 16:50:05 -0700 Subject: [PATCH] Align auth scopes (#151045) --- extensions/github/src/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/github/src/auth.ts b/extensions/github/src/auth.ts index af91374e91f..859fe9fa821 100644 --- a/extensions/github/src/auth.ts +++ b/extensions/github/src/auth.ts @@ -24,7 +24,7 @@ function getAgent(url: string | undefined = process.env.HTTPS_PROXY): Agent { } } -const scopes = ['repo', 'workflow']; +const scopes = ['repo', 'workflow', 'user:email', 'read:user']; export async function getSession(): Promise { return await authentication.getSession('github', scopes, { createIfNone: true });