Skip to content

Commit

Permalink
PHP - Add github auth token to composer configuration
Browse files Browse the repository at this point in the history
This writes the github auth token to a config file in ~/.composer, which then uses it when downloading packages

This will help with github rate limiting, as was happening on cucumber#52

Documentation here: https://github.com/shivammathur/setup-php#github-composer-authentication
  • Loading branch information
ciaranmcnulty committed Nov 13, 2022
1 parent 0f61b10 commit 9ed2c63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Discover composer cache directory
id: composer-cache
Expand Down Expand Up @@ -55,4 +57,4 @@ jobs:
- name: run acceptance tests
run: make acceptance
working-directory: php
working-directory: php

0 comments on commit 9ed2c63

Please sign in to comment.