Skip to content

Commit 9ed2c63

Browse files
committed
PHP - Add github auth token to composer configuration
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
1 parent 0f61b10 commit 9ed2c63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test-php.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: "${{ matrix.php }}"
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2830

2931
- name: Discover composer cache directory
3032
id: composer-cache
@@ -55,4 +57,4 @@ jobs:
5557
5658
- name: run acceptance tests
5759
run: make acceptance
58-
working-directory: php
60+
working-directory: php

0 commit comments

Comments
 (0)