Skip to content

Commit 2317b3e

Browse files
committed
update README to include GITHUB_TOKEN env forwarding instructions
1 parent 94d0a81 commit 2317b3e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,16 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- uses: nxtlvlsoftware/setup-phpstan-action@v1
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2931
with:
3032
version: '1.8.2'
3133
install-path: './bin'
3234
```
3335
36+
Forwarding the `$GIHUB_TOKEN` environment variable is required to properly configure PHPStan as we
37+
interact with the GitHub API to fetch version information.
38+
3439
Or provide the path to an existing PHPStan installation/binary:
3540
```yml
3641
name: My PHPStan Workflow
@@ -41,6 +46,8 @@ jobs:
4146
runs-on: ubuntu-latest
4247
steps:
4348
- uses: nxtlvlsoftware/setup-phpstan-action@v1
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4451
with:
4552
path: 'path/to/your/phpstan.phar'
4653
install-path: './bin'

0 commit comments

Comments
 (0)