Description
Description
I encountered an issue while using php-actions/composer@v6 in my GitHub Actions workflow. The workflow is set up as follows:
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: '8.1'
version: 2
This is running on a blacksmith.sh arm runner
However, the installation fails with the following error message:
Building PHP 8.1 with extensions: ...
docker: invalid env file (./DOCKER_ENV): variable 'Available CPUs: 14' contains whitespaces
Run 'docker run --help' for more information
Expected behavior:
The process should pass
Additional context:
I have forked this repo and debugged the DOCKER_ENV step and found the following
BLACKSMITH_STORE_STATS=System Statistics:
-----------------
Available CPUs: 10
Jobs by Process ID:
-----------------
PID 2055811: 13 jobs
Total: 13 jobs across 1 process
Devices by Process ID:
-----------------
PID 2055811: 13 devices
Total: 13 devices across 1 process
This is causing the docker process to fail
I have reached out to Blacksmith support to advise them of this, however I think that this action should also be sanitizing or otherwise checking the env values it writes to DOCKER_ENV
This action runs correctly on the github standard runners, I have also tested it on blacksmiths x86 runners with the same error being observed.
I have opened a PR with a patch for this process.