Setup PHP Action
Actively maintainedshivammathur/setup-php · MIT
GitHub action to set up PHP with extensions, php.ini configuration, coverage drivers, and various tools.
★ 3.3k starsLast commit 8 days agoLatest 2.37.2
B
75
/ 100
Security signals
OpenSSF Scorecard7.7 / 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.2Mutable 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
Add this badge to your README
Markdown
[](https://actionrank.dev/actions/shivammathur-setup-php)HTML version
HTML
<a href="https://actionrank.dev/actions/shivammathur-setup-php"><img src="https://actionrank.dev/api/badge/shivammathur-setup-php" alt="ActionRank score"></a>Free to use, no attribution required — the badge updates itself as the score changes. How badges work