Skip to content

Bug: Sporadic failure with "undefined" is not valid JSON #952

@Sainan

Description

@Sainan

Describe the bug

We use this step in GitHub-hosted ARM MacOS runners as they do not have PHP preinstalled, and it seems to be failing every once in a while with this not very helpful error message:

Version

  • v2
  • v1

Runners

GitHub Hosted

Operating systems

MacOS 14

PHP versions

Not specified

To Reproduce

The relevant part of our workflow file:

  macos-arm64:
    runs-on: macos-14
    steps:
      - uses: shivammathur/setup-php@v2

Expected behavior

Workflow doesn't fail.

Screenshots/Logs

No response

Additional context

No response

Are you willing to submit a PR?

No

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions