Skip to content

Commit

Permalink
PHP - Add github auth token to composer configuration (#55)
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 #52

Documentation here: https://github.com/shivammathur/setup-php#github-composer-authentication
  • Loading branch information
ciaranmcnulty authored Nov 13, 2022
1 parent 0f61b10 commit 708347f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
- main
workflow_call:

permissions:
contents: read

jobs:
test-php:
runs-on: ubuntu-latest
Expand All @@ -25,6 +28,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 +60,4 @@ jobs:
- name: run acceptance tests
run: make acceptance
working-directory: php
working-directory: php

0 comments on commit 708347f

Please sign in to comment.