## 事象 [[GitHub Actions]]を実行すると以下のようなエラーになることがある。 ``` Run arduino/setup-task@v1 with: version: 3.x Error: API rate limit exceeded for 52.226.28.160. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.) ``` ## 原因 [[GitHub REST APIのRate Limitエラー]]によるもの。 ## 解決方法 以下のように`repo-token`を指定する。これで認証アカウントとして利用されるので[[Rate Limit]]が上がる。 ```yaml steps: - uses: arduino/setup-task@v1 with: repo-token: ${{ secrets.GITHUB_TOKEN }} ``` ## 参考 - [Automatic token authentication \- GitHub Docs](https://docs.github.com/en/actions/security-guides/automatic-token-authentication)