Repository navigation
Bug: 2.36.0 fails on https://runs-on.com/ runners #1033
Copy link
Copy link
Closed
Labels
Description
Describe the bug
Since the release of 2.36.0, shivammathur/setup-php@v2 fails on runs-on runners.
It happens for both 8.4 and 8.5
Debug run didn't shed any light:
##[debug]Evaluating condition for step: 'Setup PHP'
##[debug]Evaluating: success()
##[debug]Evaluating success:
##[debug]=> true
##[debug]Result: true
##[debug]Starting: Setup PHP
##[debug]Loading inputs
##[debug]Evaluating: github.token
##[debug]Evaluating Index:
##[debug]..Evaluating github:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'token'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run shivammathur/setup-php@v2
with:
php-version: 8.4
ini-values: date.timezone = Europe/Amsterdam, display_errors = Off, error_reporting = E_ALL, log_errors = On, max_file_uploads = 30, max_input_vars = 10000, memory_limit = 4096M, opcache.enable = 0, post_max_size = 200M, short_open_tag = On, upload_max_filesize = 200M
tools: composer:v2
coverage: none
extensions: ssh2
ini-file: production
github-token: ***
env:
OUTPUT_FILE: /tmp/testsOutput.log
RUNNER_TOOL_CACHE: /opt/hostedtoolcache
RUNS_ON_HOME: /runs-on
RUNS_ON_VERSION: v2.10.0
RUNS_ON_AGENT_BINARY: /runs-on/agent
RUNS_ON_AGENT_ARCH: x64
RUNS_ON_AGENT_USER: runner
RUNS_ON_AMI_ID: ami-[redacted]
RUNS_ON_AWS_REGION: eu-central-1
RUNS_ON_AWS_AZ: eu-central-1a
RUNS_ON_ENV_CUSTOM_FILE: /runs-on/env.custom
RUNS_ON_INSTANCE_ID: i-[redacted]
RUNS_ON_INSTANCE_LIFECYCLE: on-demand
RUNS_ON_INSTANCE_TYPE: i7ie.large
RUNS_ON_STACK_NAME: runs-on
RUNS_ON_S3_BUCKET_CACHE: runs-on-s3bucketcache-[redacted]
ACTIONS_RUNNER_HOOK_JOB_STARTED: /runs-on/pre.sh
ACTIONS_RUNNER_HOOK_JOB_COMPLETED: /runs-on/post.sh
RUNS_ON_RUNNER_NAME: runs-on--i-[redacted]--DheZxxrZIo
RUNS_ON_INSTANCE_LAUNCHED_AT: 2025-11-26T12:38:43Z
/usr/bin/bash /home/runner/_work/_actions/shivammathur/setup-php/v2/src/scripts/run.sh
==> Setup PHP
✗ PHP Could not setup PHP 8.4
Error: The process '/usr/bin/bash' failed with exit code 1
##[debug]Node Action run completed with exit code 1
##[debug]RUNNER_TOOL_CACHE='/opt/hostedtoolcache'
##[debug]Finishing: Setup PHPPinning to 2.35.5 works.
Version
- v2
- v1
Runners
Self Hosted
Operating systems
Ubuntu arm
PHP versions
8.4, 8.5
To Reproduce
phplint:
name: PHP lint
runs-on: runs-on=${{ github.run_id }}/runner=phplint
strategy:
fail-fast: false
matrix:
php-versions: [8.4, 8.5]
steps:
- uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: error_reporting=E_ALL
tools: composer:v2
coverage: none
- name: Perform lint check
run: composer lintExpected behavior
It should
Screenshots/Logs
No response
Additional context
Should work as 2.35.5 does.
Are you willing to submit a PR?
Yes
Reacted by William Julian-Vicary, Robert Weide and sridhara M
Activity
[-]Bug: 2.35.6 fails on https://runs-on.com/ runners[/-][+]Bug: 2.36.0 fails on https://runs-on.com/ runners[/+]shivammathur commentedon Nov 26, 2025
@zoispag Can you run it with
shivammathur/setup-php@more-verboseand provide me the logs.williamjulianvicary commentedon Nov 26, 2025
Confirming same issue with Ubicloud runners
zoispag commentedon Nov 26, 2025
@shivammathur
8.5
8.4
kolorafa commentedon Nov 26, 2025
The same on Azure Ubuntu 24.04
Pin PHP setup action version to 2.35.5
kolorafa commentedon Nov 26, 2025
Will the shopware/github-actions#118
also make installing PHP using
spcworkor do we need to update somehow pipeline to use different command/spc build or use some params?
Currently:
Thanks :)
shivammathur commentedon Nov 26, 2025
@kolorafa @zoispag @williamjulianvicary
Please test with
shivammathur/setup-php@developand let me know if that fixes it.zoispag commentedon Nov 26, 2025
@shivammathur develop works!
shivammathur commentedon Nov 26, 2025
I have retagged the release and updated
v2. It should work now.williamjulianvicary commentedon Nov 26, 2025
Also confirming working now, thank you for all your work!