Skip to content

Commit b38c4e3

Browse files
fix
Signed-off-by: Roman Nikitenko <rnikiten@redhat.com>
1 parent 5f96208 commit b38c4e3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • code/extensions/che-github-authentication/src

code/extensions/che-github-authentication/src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,12 @@ export function hasAllScopes(existingScopes: string[], requestedScopes: string[]
3838
return requestedScopes.every(scope => existingScopes.includes(scope));
3939
}
4040

41-
/** Scope bundles used by Copilot / github extension — session keys match vanilla createSession. */
41+
/** Scope bundles used by Copilot / github / GHPRI / Agent Host — session keys match vanilla createSession. */
4242
export const HYDRATION_SCOPE_BUNDLES: readonly string[][] = [
4343
['read:user', 'user:email', 'repo', 'workflow', 'project', 'read:org'],
4444
['read:user', 'user:email', 'repo', 'workflow'],
45+
['read:user', 'user:email', 'repo'],
46+
['read:user', 'user:email'],
4547
['user:email'],
4648
];
4749

0 commit comments

Comments
 (0)