Commit Graph
47 Commits
Author SHA1 Message Date
Keisuke MaedaandClaude Fable 5 8ca9579834 Add support for pinning tools to a checksum (#1098)
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>
2026-07-23 18:15:59 +05:30
Shivam Mathur 6a1d559c57 Fix regression in pecl_http support [skip ci] 2026-03-15 11:18:29 +05:30
Shivam Mathur 1eee54fe48 Fix paths for bin tools and scoped tools [skip ci] 2026-01-23 01:04:38 +05:30
Shivam Mathur 3dfaca4ee1 Rename nightly_versions -> php_builder_versions 2025-11-26 22:22:06 +05:30
Shivam Mathur 9d7558f1af Revert to using php-builder for PHP 8.3 and above for self-hosted 2025-11-26 20:05:44 +05:30
Shivam Mathur 248e3ca37a Mark PHP 8.5 as stable 2025-11-21 02:36:26 +05:30
Shivam Mathur dcffe28928 Fix jit config on arm 2025-09-11 18:38:04 +05:30
Shivam Mathur 96d7cf331d Fix warning on chmod on failure in get 2025-09-02 14:42:11 +05:30
Shivam Mathur c251c791ff Fix pipe in get_sha256 2025-06-11 15:00:38 +05:30
Shivam Mathur 36fada6981 Fix tool-cache directory on self-hosted runners 2025-06-11 14:57:09 +05:30
Shivam Mathur 2ec652d38d Fix locking permissions in get function 2025-06-10 03:20:10 +05:30
Shivam Mathur df8d123345 Improve self-hosted detection 2025-05-08 14:38:46 +05:30
JMoodyFWD dc7e73e115 Change TOOLS_DIR to SETUP_PHP_TOOLS_DIR to prevent regression 2025-05-06 11:00:13 -06:00
Sn0wCrack 78e1c95060 feat: set this via an environment variable instead 2025-04-07 12:29:02 +05:30
Shivam Mathur 89a5bffb0b Improving locking process in get 2025-02-06 02:33:08 +05:30
Shivam Mathur da729085ef Add support for pre-installed PHP 2024-12-23 16:04:30 +05:30
Shivam Mathur cdfde5ebec Fix update on multiple installs in same job 2024-12-23 07:33:26 +05:30
Shivam Mathur a75ffb672b Fix status code output in get function 2024-11-12 02:20:20 +05:30
Shivam Mathur 80075aeba5 Wait in get till no processes are using the output filepath 2024-11-11 14:32:06 +05:30
Shivam Mathur 449afbcaec Handle race condition in get on a mutli self-hosted runners setup 2024-11-11 12:53:09 +05:30
Shivam Mathur de2903ad82 Fix installing zts builds 2023-11-26 03:55:45 +05:30
Shivam Mathur 3f2a402846 Mark runner as self-hosted on nektos/act 2023-06-05 16:28:04 +05:30
Shivam Mathur e513384a65 Fix jit configuration 2023-04-02 23:23:48 +05:30
Shivam Mathur f20012026f Bump nightly versions in unix.sh 2022-12-15 05:32:31 +05:30
Shivam Mathur 5178fac634 Update PHP if ppa:ondrej/php is missing ref: actions/runner-images#6331 2022-10-28 12:24:37 +05:30
Shivam Mathur 37dcd1cf8c Merge branch 'improv/zts' of https://github.com/flavioheleno/setup-php into flavioheleno-improv/zts 2022-10-17 17:03:20 +05:30
Shivam Mathur 0575a32108 Switch to $GITHUB_OUTPUT 2022-10-12 16:34:58 +05:30
Shivam Mathur b556cf7292 Add support for debug builds 2022-10-10 15:34:36 +05:30
Flavio Heleno f99a9d4624 Add thread-safe setup support 2022-10-05 19:31:52 -03:00
Shivam Mathur 7ff9ac44b4 Add support for debug builds 2022-09-26 09:42:27 +05:30
Shivam Mathur da9dfe4a71 Set RUNNER_TOOL_CACHE on self-hosted environments 2022-07-05 12:03:30 +05:30
Shivam Mathur ee065c5938 Append custom ini files to php.ini files 2022-05-25 20:43:46 +05:30
Shivam Mathur 035c0a8550 Use local variables in log functions 2022-03-10 04:53:12 +05:30
Shivam Mathur 7854a0cae7 Fix adding composer_bin to PATH 2022-02-09 03:27:03 +05:30
Shivam Mathur a72a638da4 Fix check in add_path
Add composer_bin to the PATH after a tool is added using composer
2022-02-09 00:53:56 +05:30
Shivam Mathur 78532b17de Fail when runner it set to github on self-hosted environments 2022-02-08 00:49:31 +05:30
Shivam Mathur 9d74a11420 Fix output on non GitHub Action environments 2022-02-02 14:38:23 +05:30
Shivam Mathur 0022878947 Remove unnecessary dist parameter 2022-01-29 12:14:42 +05:30
Shivam Mathur a0a791cada Add ini_file input to set base php.ini 2022-01-25 13:43:49 +05:30
Shivam Mathur 2ee6797b63 Optimize Linux and macOS setup 2022-01-18 10:16:58 +05:30
Shivam Mathur 2b729b1130 Refactor setting environment variables 2022-01-18 04:41:51 +05:30
Shivam Mathur 9a70be75c2 Reduce php calls on Linux and macOS 2022-01-16 14:09:43 +05:30
Shivam Mathur 3a4acaaed8 Default to self-hosted unless GitHub hosted runner is detected
Refactor read_env in unix.sh
2022-01-12 21:15:11 +05:30
Shivam Mathur f3010adf3e Improve tools setup
Log full semver of tools installed with composer

Refactor adding paths to PATH
2022-01-11 06:04:19 +05:30
Shivam Mathur 22ebe0d733 Use php-config to get semver 2022-01-09 13:44:50 +05:30
Shivam Mathur 1fd26e45c8 Refactor INI directives to configs 2022-01-09 13:44:40 +05:30
Shivam Mathur de4fdb85b9 Rename common.sh to unix.sh 2022-01-05 15:20:40 +05:30