Skip to content

Commit 988b557

Browse files
committed
Attempted fix for PHAR rate-limit
1 parent a8542be commit 988b557

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/php.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.11.6
2424
with:
2525
php-version: ${{ matrix.php-version }}
26+
token: ${{ secrets.PAT_TOKEN }}
2627

2728
linter:
2829
name: 'Linter'

.github/workflows/reusable_phplinter.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on: # yamllint disable-line rule:truthy
1717
type: string
1818
required: false
1919
default: ${{ github.ref }}
20+
token:
21+
description: 'The GitHub token to use for downloading the PHAR file'
22+
type: string
23+
required: false
2024

2125
env:
2226
supported: '["8.3", "8.4", "8.5"]'
@@ -48,7 +52,7 @@ jobs:
4852
- name: Install overtrue/phplint (latest)
4953
run: phive install overtrue/phplint --force-accept-unsigned --target ./bin
5054
env:
51-
GITHUB_AUTH_TOKEN: ${{ secrets.CODECOV_TOKEN }}
55+
GITHUB_AUTH_TOKEN: ${{ inputs.token }}
5256

5357
- name: Lint PHP files
5458
run: ./bin/phplint --no-cache --no-progress -v

0 commit comments

Comments
 (0)