* Download Deployer from GitHub releases
Resolve the Deployer phar URL from the deployphp/deployer GitHub
releases instead of fetching the deployer.org manifest, keeping
deployer.org as a fallback for versions not published on GitHub.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Use real Deployer version in checksum test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Tools in the tools input can now be pinned to a checksum using the
tool:version@sha256:<hash> or tool:version@sha512:<hash> syntax.
The downloaded tool is verified against the checksum on all platforms,
including when it is served from the tools cache, and it is removed
along with its cache entry if the verification fails.
Checksum verification is supported for tools downloaded as phar
archives. Specifying a checksum for tools set up using composer
packages or custom package scripts results in an error.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
When version is not specified (empty string), the getUrl function
was generating invalid URLs like /releases/download/cs2pr without
any version, which returned 404.
This fix ensures that when version is empty or 'latest', the URL
includes '/latest/' which GitHub handles correctly with a redirect
to the actual latest release.
Fixes#1063
Latest Phive (0.16.0) claims to require PHP 8.0 or later[1]. While I
have not found any issues running it under PHP 7.4, it might be better
to stick with Phive 0.15.3 for PHP 7.3/7.4.
[1] <https://github.com/phar-io/phive/releases/tag/0.16.0>
Added fetch_latest to tools.json. When fetch_latest is true for a tool
it will fetch the release.atom for the tool and parse that to get the
latest release.
Bumped lib version to ES2020 in tsconfig.json for string.matchAll.
Phive has released version `0.15.0` which ups the minimum supported PHP version to PHP 7.3.
This adds the switch statement for Phive to take this into account.
Ref: https://github.com/phar-io/phive/releases