Skip to content

Commit

Permalink
GH Actions/test: fix rate limiting issue
Browse files Browse the repository at this point in the history
If a tool version is specified, workflows can run into rate limiting issues with the GitHub API. To get round this, the `GITHUB_TOKEN` needs to be provided.

The `tools` key is also used in the CS workflows, but has, so far, not yielded any problematic builds for those. If needs be, the same tweak can be made to those job steps if those jobs would start to hit rate limits in the future.

Ref: https://github.com/shivammathur/setup-php#wrench-tools-support
  • Loading branch information
jrfnl committed Feb 7, 2025
1 parent 5c8016c commit da25566
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ jobs:
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
env:
fail-fast: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# YoastCS 3.0 has a PHP 7.2 minimum which conflicts with the requirements of this package.
- name: 'Composer: remove YoastCS'
Expand Down

0 comments on commit da25566

Please sign in to comment.