Skip to main content

此版本的 GitHub Enterprise 已停止服务 2022-06-03. 即使针对重大安全问题,也不会发布补丁。 要获得更好的性能、改进的安全性和新功能,请升级到 GitHub Enterprise 的最新版本。 如需升级方面的帮助,请联系 GitHub Enterprise 支持

Rate limits for GitHub Apps

GitHub 应用程序 和 OAuth 应用程序 的速率限制有助于控制 您的 GitHub Enterprise Server 实例 的流量。

注意:以下速率限制是 GitHub Enterprise Server 的默认速率限制。 请与站点管理员联系,以确认 您的 GitHub Enterprise Server 实例 的速率限制。

Note: You can confirm your current rate limit status at any time. For more information, see "Checking your rate limit status."

Server-to-server requests

GitHub 应用程序 making server-to-server requests use the installation's minimum rate limit of 5,000 requests per hour. If an application is installed on an organization with more than 20 users, the application receives another 50 requests per hour for each user. Installations that have more than 20 repositories receive another 50 requests per hour for each repository. The maximum rate limit for an installation is 12,500 requests per hour.

User-to-server requests

GitHub 应用程序 and OAuth 应用程序 can also act on behalf of a user, making user-to-server requests after the user authorizes the app. For more information, see "Authorizing GitHub 应用程序" and "Authorizing OAuth 应用程序."

User-to-server requests from OAuth 应用程序 are authenticated with an OAuth token. User-to-server requests from GitHub 应用程序 are authenticated with either an OAuth token or an expiring user access token. For more information, see "Identifying and authorizing users for GitHub 应用程序" and "Authorizing OAuth 应用程序."

By default, user-to-server requests are limited to 5,000 requests per hour and per authenticated user. All requests from OAuth applications authorized by a user or a personal access token owned by the user, and requests authenticated with any of the user's authentication credentials, share the same quota of 5,000 requests per hour for that user.

Further reading