From ac7cac33a87d9550f423e4aed478ec98b950d2df Mon Sep 17 00:00:00 2001 From: Muhsin Keloth Date: Mon, 30 Jun 2025 12:47:33 +0530 Subject: [PATCH] chore: update oauth url --- app/models/integrations/app.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/models/integrations/app.rb b/app/models/integrations/app.rb index 94dee79ce..ae58b07d1 100644 --- a/app/models/integrations/app.rb +++ b/app/models/integrations/app.rb @@ -88,11 +88,10 @@ class Integrations::App def build_github_action app_id = GlobalConfigService.load('GITHUB_CLIENT_ID', nil) [ - "#{params[:action]}?response_type=code", - "client_id=#{app_id}", + "#{params[:action]}?client_id=#{app_id}", "redirect_uri=#{self.class.github_integration_url}", "state=#{encode_state}", - 'scope=repo' + 'scope=repo,read:org' ].join('&') end