From 226ea545fa10e16c455b95eb51573ce14dd05c05 Mon Sep 17 00:00:00 2001 From: Robert Brennan Date: Wed, 16 Oct 2024 14:41:46 -0400 Subject: [PATCH] Add workflow scope to GitHub authentication URL (#4439) Co-authored-by: openhands --- frontend/src/routes/_oh._index/route.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/routes/_oh._index/route.tsx b/frontend/src/routes/_oh._index/route.tsx index 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 }); };