-
Bug
-
Resolution: Fixed
-
Major
-
None
-
-
github-branch-source:1767.va_7d01ea_c7256
We should provide a way to disable the retrieval of the org logo from org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator.retrieveActions that hangs the Organization Item scans when the anonymous user API quota in GitHub is reached.
An Org Scan consumes an anonymous call. And even with the cache implemented as part of https://issues.jenkins.io/browse/JENKINS-69815, this is a problem because if another source consumes the anonymous user quota from within the same network (from behind the same single IP for example) all instances may be impacted.
Note that at the moment, even looking at the config page consumes an API call: https://issues.jenkins.io/browse/JENKINS-71887.
As noted in https://github.com/jenkinsci/github-branch-source-plugin/pull/700#issuecomment-1710750053, we better remove that behavior from retrieveActions
- is related to
-
JENKINS-71887 An anonymous call is made to GitHub URI when looking at the global config page
-
- Open
-
-
JENKINS-69815 Organization Scan hangs on anonymous rate limits checking for private mode
-
- Resolved
-
- links to
Also, in the configuration of an Org item, we can configure a *Appearance > Icon* that by default is the metadata icon. But even if we select something different, the SCMNavigator is still gonna fetch the AvatarMetadataAction. That seems like a design flaw ?
If choosing another FolderIcon here would turn off the fetch for the avatar, that would be a solution for the problem that we are trying to fix...