ActionRank

Setup PHP Action

Actively maintained

shivammathur/setup-php · MIT

GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.

3.2k starsLast commit 6 days agoLatest 2.37.2
B
75
/ 100
Security 58Maintenance 100Popularity 69Reliability 70

Security signals

OpenSSF Scorecard7.6 / 10
SECURITY.md presentNo
Immutable releasesNot enabled
Known vulnerabilities2 advisory(ies)
  • GHSA-5wxr-w449-57cmmoderate

    Setup PHP: GitHub tokens configured by setup-php may be exposed through pinned affected Composer versions

    Published May 20, 2026
  • CVE-2026-46420moderate

    Setup PHP: Command Injection in Repository-Derived PHP Version Resolution

    Published May 20, 2026

How to use it safely

Recommended: pin to commit SHA
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2

Mutable tags like 2.37.2 can be rewritten to point at malicious commits. Pinning to the full commit SHA is the only reference GitHub guarantees immutable.

Full workflow example
steps:
  - uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2

Score breakdown

Security (35%)58
Popularity (20%)69
Maintenance (30%)100
Reliability (15%)70