Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60224

GiHub Oauth plugin requests permissions to user's private repos

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Not A Defect
    • Component/s: github-oauth-plugin
    • Labels:
      None
    • Environment:
      Jenkins version 2.190.1
      github-oauth-plugin version 0.33
    • Similar Issues:

      Description

      According to GitHub approval page, GiHub Oauth plugin requests permissions to the user's private repos. 
      This seems irrelevant and prevents us from using this plugin.  
      We couldn't find how to tweak these permissions.

        Attachments

          Activity

          Hide
          sag47 Sam Gleske added a comment -

          You can customize requested scopes in the OAuth application configuration in the Jenkins global security configuration.

          The scopes we have as default are the minimum required for private repositories. However, you can further restrict the scopes to whatever you want by updating the requested scopes configuration.

          This is also documented in the plugin documentation; see https://wiki.jenkins.io/display/JENKINS/GitHub+OAuth+Plugin#GitHubOAuthPlugin-SecurityRealminGlobalSecurity

          Show
          sag47 Sam Gleske added a comment - You can customize requested scopes in the OAuth application configuration in the Jenkins global security configuration. The scopes we have as default are the minimum required for private repositories. However, you can further restrict the scopes to whatever you want by updating the requested scopes configuration. This is also documented in the plugin documentation; see https://wiki.jenkins.io/display/JENKINS/GitHub+OAuth+Plugin#GitHubOAuthPlugin-SecurityRealminGlobalSecurity

            People

            • Assignee:
              sag47 Sam Gleske
              Reporter:
              vitaly_il Vitaly Karasik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: