jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-68217] GitHub rate limit during readTrusted step

Open
#1,391 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

I have a typical GitHub Org folder set up for Enterprise Cloud GitHub org with internal repository type, that is using GitHub App credentials, and the pipeline was running on a PR draft from a private fork. The very first step the pipeline is doing - readTrusted step, and I got the following:

05:16:37 Connecting to https://api.github.com using GitHub App for github.com/xxx

05:16:37 Jenkins-Imposed API Limiter: Current quota for Github API usage has 9 remaining (6 over budget). Next quota of 60 in 44 min. Sleeping until reset.
05:16:37 Jenkins is attempting to evenly distribute GitHub API requests. To configure a different rate limiting strategy, such as having Jenkins restrict GitHub API requests only when near or above the GitHub rate limit, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

On the enterprise org GitHub App credentials are having hourly rate limit of 15k requests. 60 is what usually is given to anonymous user. As the repo is internal and the fork is private - it would not have had access with anonymous user. I am puzzled as to why it was thinking the quota was 60/hr as like it was anonymous while in fact it wasn't.

---
Originally reported by llibicpep, imported from: GitHub rate limit during readTrusted step


  • status: Open
  • priority: Major
  • component(s): github-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

I have a typical GitHub Org folder set up for Enterprise Cloud GitHub org with internal repository type, that is using GitHub App credentials, and the pipeline was running on a PR draft from a private fork. The very first step the pipeline is doing - readTrusted step, and I got the following:


05:16:37 Connecting to https://api.github.com using GitHub App for github.com/xxx

05:16:37 Jenkins-Imposed API Limiter: Current quota for Github API usage has 9 remaining (6 over budget). Next quota of 60 in 44 min. Sleeping until reset.
05:16:37 Jenkins is attempting to evenly distribute GitHub API requests. To configure a different rate limiting strategy, such as having Jenkins restrict GitHub API requests only when near or above the GitHub rate limit, go to "GitHub API usage" under "Configure System" in the Jenkins settings.

On the enterprise org GitHub App credentials are having hourly rate limit of 15k requests. 60 is what usually is given to anonymous user. As the repo is internal and the fork is private - it would not have had access with anonymous user. I am puzzled as to why it was thinking the quota was 60/hr as like it was anonymous while in fact it wasn't.

1 attachment

- [github_rate_limit.jpg](https://issues.jenkins.io/secure/attachment/57644/github_rate_limit.jpg)
> ![github_rate_limit.jpg](https://issues.jenkins.io/secure/attachment/57644/github_rate_limit.jpg)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.