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

GitHub app token expires after 1 hours and long org scans can't be completed

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      github-branch-source-2.9.4

      Description

      I can't finish an org scan because it doesn't complete within 1 hour, the token then expires and it switches to anonymous auth with 60 requests an hour...

      https://ci.jenkins.io/job/Plugins/computation/console

      10:28:26 Jenkins-Imposed API Limiter: Current quota for Github API usage has 14 remaining (1 over buffer). Next quota of 60 due in 1 hr 0 min. Sleeping for 3 min 0 sec.
      10:28:26 Jenkins is restricting GitHub API requests only when near or above the rate limit. To configure a different rate limiting strategy, such as having Jenkins attempt to evenly distribute GitHub API requests, go to "GitHub API usage" under "Configure System" in the Jenkins settings.
      10:31:26 Jenkins-Imposed API Limiter: Still sleeping, now only 57 min remaining.
      10:34:26 Jenkins-Imposed API Limiter: Still sleeping, now only 54 min remaining.
      10:37:26 Jenkins-Imposed API Limiter: Still sleeping, now only 51 min remaining.
      10:40:26 Jenkins-Imposed API Limiter: Still sleeping, now only 48 min remaining.
      

        Attachments

          Activity

          Hide
          bitwiseman Liam Newman added a comment - - edited

          A change to the github-api library is being worked on: https://github.com/hub4j/github-api/pull/945

          Once it is released, we can leverage that to create an auto-refreshing AuthorizationProvider for Jenkins GitHub App Credentials.

          Show
          bitwiseman Liam Newman added a comment - - edited A change to the github-api library is being worked on: https://github.com/hub4j/github-api/pull/945 Once it is released, we can leverage that to create an auto-refreshing AuthorizationProvider for Jenkins GitHub App Credentials.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            timja Tim Jacomb
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: