Lesstep
GitHub Actions・2026年11月3日に確認

GitHub Actions:「API rate limit exceeded for installation」

トークンの、REST API の1時間あたりの枠が使い切られたので、GitHub がリクエストを断りました。「installation」は、そのトークンがインストール済みの GitHub App のものだという意味です。ワークフローの GITHUB_TOKEN もその1つで、GitHub のドキュメントには、GITHUB_TOKEN は GitHub App のインストールのアクセストークンだ、とあります。actions/create-github-app-token で作るトークンもそうです。

見え方

2026年11月1日、PyPI と npm への公開まで済ませてから最後のステップで失敗したリリースの実行から(gaia #6383):

Run softprops/action-gh-release@v3
...
⚠️ Unexpected error fetching GitHub release for tag refs/tags/v0.25.4-rc2: HttpError: API rate limit exceeded for installation. ...
##[error]API rate limit exceeded for installation. If you reach out to GitHub Support for help, please include the request ID 5400:96E7A:2806BCA:856BD7E:6AE799AB and timestamp 2026-11-01 19:57:31 UTC. ...

だれの枠か

ジョブの中で枠を見る

- name: API budget
  if: always()
  env:
    GH_TOKEN: ${{ github.token }}
  run: gh api rate_limit --jq '.resources.core | "\(.used)/\(.limit), resets \(.reset | todate)"'

呼び出しの行き先

失敗させない書き方

新しい push で要らなくなった実行をキャンセルし、始める実行を減らします:

on:
  pull_request:
    types: [opened, synchronize, ready_for_review]
    paths: ['src/**']

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true
- uses: actions/create-github-app-token@v3
  id: app-token
  with:
    client-id: ${{ vars.APP_CLIENT_ID }}
    private-key: ${{ secrets.APP_PRIVATE_KEY }}

- run: gh api "repos/${{ github.repository }}/pulls?state=open&per_page=100" --jq length
  env:
    GH_TOKEN: ${{ steps.app-token.outputs.token }}

見分け方

失敗したジョブを IntelliJ IDEA から見るなら

Pipeline Inbox for GitHub Actions Workflows は、Lesstep が作っている JetBrains IDE(2024.1 以降)のプラグインです。すべてのリポジトリの実行を、ジョブ・ステップと一緒に IDE のツールウィンドウに並べ、いまのブランチの実行はステータスバーに出ます。読むのは無料、失敗したジョブの再実行・キャンセル・ワークフローの実行・デプロイのレビューは Pro(月 US$1.50・30日の無料試用つき)です。

GitHub と GitHub Actions は GitHub, Inc. の商標、IntelliJ IDEA は JetBrains s.r.o. の商標です。このページは GitHub, Inc.・JetBrains のいずれとも提携しておらず、承認も受けていません。

ほかに:「Resource not accessible by integration」 · GitHub の「API rate limit exceeded」(トークンあり・なし) · 「Input required and not supplied」 · 止まらない実行と強制キャンセル · IntelliJ IDEA で使える GitHub Actions のプラグインの比較 · English