Update GitHub Actions and set PHP platform constraint#6
Conversation
- Pin actions/checkout to @v4 (was @master, vulnerable to supply chain attacks) - Upgrade github/codeql-action/upload-sarif from @v1 to @V3 (v1 deprecated since Dec 2022) - Upgrade codecov/codecov-action from @v2 to @v4 (v2 had supply chain concerns) - Update dev dependencies: PHPUnit 9.6.6 -> 9.6.34, and related packages - Add platform.php config to ensure dependency resolution stays PHP 7.4 compatible https://claude.ai/code/session_01Evnp1w6hKUeU8wU3ewBPj1
|
This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6 +/- ##
===========================================
Coverage 100.00% 100.00%
Complexity 9 9
===========================================
Files 1 1
Lines 26 26
===========================================
Hits 26 26 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Summary
This PR updates GitHub Actions to their latest versions and adds a PHP platform constraint to the Composer configuration.
Key Changes
GitHub Actions Updates:
actions/checkout:master→v4(latest stable version)github/codeql-action/upload-sarif:v1→v3(latest stable version)codecov/codecov-action:v2→v4(latest stable version)Composer Configuration:
config.platform.phpconstraint set to7.4.33to ensure consistent dependency resolution across environmentsImplementation Details
The platform constraint in
composer.jsonensures that Composer resolves dependencies as if running on PHP 7.4.33, providing consistency in the lock file and preventing unexpected dependency version changes when developers use different PHP versions locally.https://claude.ai/code/session_01Evnp1w6hKUeU8wU3ewBPj1