π OpenHands: AI-Driven Development
Add workflow scope to GitHub authentication URL (#4439)
Robert Brennan226ea545fa10
diff --git a/frontend/src/routes/_oh._index/route.tsx b/frontend/src/routes/_oh._index/route.tsxindex 6160dc995c..6cf98852e4 100644--- a/frontend/src/routes/_oh._index/route.tsx+++ b/frontend/src/routes/_oh._index/route.tsx@@ -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 });};