Align auth scopes (#151045)

This commit is contained in:
Joyce Er
2022-06-01 16:50:05 -07:00
committed by GitHub
parent e44f4ba886
commit b9b2862341

View File

@@ -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<AuthenticationSession> {
return await authentication.getSession('github', scopes, { createIfNone: true });