Error "403" when accessing GitHub APIs from Bitbucket Pipelines

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


 

プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。

 

要約

When attempting to access GitHub APIs from Bitbucket Pipelines, one may encounter "403" errors. An example of this can be seen below, where an attempt to update a Helm project failed with the following error:


Could not retrieve the latest release tag information from https://api.github.com/repos/helm/helm/releases/latest: curl: (22) The requested URL returned error: 403 Failed to install Helm

ソリューション

GitHub has implemented rate limiting for their API calls to ensure fair usage. The rate limits for GitHub API calls are as follows:

  1. User Access Token Requests are limited to 5,000 requests per hour.
  2. User Access Token Requests have a higher limit of 15,000 for enterprise customers.
  3. For unauthenticated requests, the rate limit allows for up to 60 requests per hour. Unauthenticated requests are associated with the originating IP address, not the person making requests.

In cases where API requests are being made without authentication, there are chances of hitting the rate limit if the request count exceeds 60 within an hour. The recommended solution to avoid rate-limiting issues when accessing GitHub APIs from Bitbucket Pipelines is to authenticate using their tokens. By authenticating with tokens, one can increase the request limit to 5,000 per hour and prevent rate limiting.


注意:

Rate limits are subject to change. Please refer to the rate-limiting GitHub documentation for the latest information

If you are encountering issues following this documentation - please raise a support ticket or a community support ticket for further assistance.

説明 Error "403" when accessing GitHub APIs from Bitbucket Pipelines
製品Bitbucket Cloud



最終更新日: 2024 年 1 月 19 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.