mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
Add workflow scope to GitHub authentication URL (#4439)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
e12bff5189
commit
226ea545fa
@ -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 });
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user