From 304ca185da59cc0c860a746395294730d17770e5 Mon Sep 17 00:00:00 2001 From: Zack Koppert Date: Mon, 11 Dec 2023 09:37:24 -0800 Subject: [PATCH] Update PHP dependencies and GPG verification keys (#4960) * Update phive locations * Update phar keys and versions * Add phpstan key --------- Co-authored-by: Marco Ferrari --- README.md | 2 +- scripts/install-phive.sh | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d380babd..0d3abf44 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Developers on **GitHub** can call the **GitHub Action** to lint their codebase w | **Natural language** | [textlint](https://textlint.github.io/) | | **OpenAPI** | [spectral](https://github.com/stoplightio/spectral) | | **Perl** | [perlcritic](https://metacpan.org/pod/Perl::Critic) | -| **PHP** | [PHP built-in linter](https://www.php.net/manual/en/features.commandline.options.php) / [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) / [PHPStan](https://phpstan.org/) / [Psalm](https://psalm.dev/) | +| **PHP** | [PHP built-in linter](https://www.php.net/manual/en/features.commandline.options.php) / [PHP CodeSniffer](https://github.com/PHPCSStandards/PHP_CodeSniffer) / [PHPStan](https://phpstan.org/) / [Psalm](https://psalm.dev/) | | **PowerShell** | [PSScriptAnalyzer](https://github.com/PowerShell/Psscriptanalyzer) | | **Protocol Buffers** | [protolint](https://github.com/yoheimuta/protolint) | | **Python3** | [pylint](https://pylint.pycqa.org/) / [flake8](https://flake8.pycqa.org/en/latest/) / [black](https://github.com/psf/black) / [isort](https://pypi.org/project/isort/) | diff --git a/scripts/install-phive.sh b/scripts/install-phive.sh index a4aa5268..de6e8e3e 100755 --- a/scripts/install-phive.sh +++ b/scripts/install-phive.sh @@ -46,4 +46,11 @@ gpg --verify phive.phar.asc phive.phar chmod +x phive.phar mv phive.phar /usr/local/bin/phive rm phive.phar.asc -echo y | phive --no-progress install --trust-gpg-keys 31C7E470E2138192,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5 --target /usr/bin phpstan@^1.3.3 psalm@^4.18.1 phpcs@^3.6.2 + +# Install PHARs +phive --no-progress install \ + --trust-gpg-keys 31C7E470E2138192,CF1A108D0E7AE720,8A03EA3B385DBAA1,12CE0F1D262429A5,5E6DDE998AB73B8E,51C67305FFC2E5C0 \ + --target /usr/bin \ + phpstan@^1.10.48 \ + psalm@^5.17.0 \ + phpcs@^3.8.0