mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1681] user shivammathur/setup-php@v2 got error with SyntaxError: Unexpected token '??=' #831
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#831
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @zgqit on GitHub (Mar 16, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1681
Bug report info
Command used with act
Describe issue
use act depoly php environment on the azure web app service,when execute the shivammathur-setup-php@v2 action, got the SyntaxError: Unexpected token '??='.
Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
No response
@kuhnchris commented on GitHub (Mar 16, 2023):
What's the base image's nodejs version?
According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_assignment you'd need at least node v15+
@zgqit commented on GitHub (Mar 16, 2023):
thanks for reply.
I check the deploy image(catthehacker/ubuntu:full-18.04) in docker,the node version is v14.17.6.
So i shoud update node version before execute shivammathur/setup-php@v2 action.
@ricardo-nolan commented on GitHub (Mar 16, 2023):
use
-P ubuntu-18.04=shivammathur/node:1804with the act command.@robsonsobral commented on GitHub (Jun 16, 2023):
Can't fix not even using @ricardo-nolan's suggestion.
@james-green-affinity commented on GitHub (Jul 18, 2023):
I have this issue to:
act version 0.2.48
I notice when I go into the container itself and run "/bin/bash /run/act/actions/shivammathur-setup-php@v2/src/scripts/run.sh"
It does successfully install PHP:
@agopaul commented on GitHub (Dec 12, 2023):
I had the same issue and I was able to fix it by using the option
-P ubuntu-latest=shivammathur/node:latestas described in the Action's own documentation: https://github.com/shivammathur/setup-php?tab=readme-ov-file#local-testing-setup@github-actions[bot] commented on GitHub (Jun 10, 2024):
Issue is stale and will be closed in 14 days unless there is new activity
@teamhamza commented on GitHub (May 28, 2025):
i have this error from my side :
composer-install/Run composer install/composer-install] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/3] user= workdir= | ::error ::Your github oauth token for github.com contains invalid characters: "" | | In BaseIO.php line 140: | | Your github oauth token for github.com contains invalid characters: "