mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 15:28:14 -05:00
Add workflow scope to GitHub authentication URL (#4439)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -87,7 +87,7 @@ export const clientLoader = async ({ request }: ClientLoaderFunctionArgs) => {
|
||||
const clientId = import.meta.env.VITE_GITHUB_CLIENT_ID;
|
||||
const requestUrl = new URL(request.url);
|
||||
const redirectUri = `${requestUrl.origin}/oauth/github/callback`;
|
||||
const githubAuthUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&scope=repo,user`;
|
||||
const githubAuthUrl = `https://github.com/login/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}&scope=repo,user,workflow`;
|
||||
|
||||
return json({ repositories, githubAuthUrl });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user