Skip to content

fix: pin composer platform to PHP 8.1 and refresh lock - #33

Merged
gibiw merged 2 commits into
masterfrom
fix/composer-platform
Oct 27, 2026
Merged

gibiw merged 2 commits into
masterfrom
fix/composer-platform

Conversation

@gibiw

@gibiw gibiw commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Dependabot security updates fail on every run. The lock was resolved on PHP 8.2+ (codeception/codeception 5.3.4 and brick/math 0.14.8 both require ^8.2), while composer.json allows php: ^8.0. Dependabot therefore resolves against PHP 8.0 and cannot update guzzlehttp/guzzle 7.10.0, which needs ≥7.15.2.

Changes

  • config.platform.php is pinned to 8.1, which matches the CI (integration-tests.yml) and qase-phpunit.
  • roave/security-advisories is removed from require-dev. It conflicts with every PHP 8.1 release (php <8.2.35), so no lock can be resolved for the supported minimum. Dependabot and composer audit cover advisories.
  • The lock is regenerated: guzzle 7.16.1, psr7 2.13.2, codeception 5.2.2, phpunit 10.5.66, php-commons 2.1.22, symfony/yaml 6.4.48, psysh 0.12.24. composer audit reports no advisories. This closes all 17 open Dependabot alerts (guzzle, psr7, symfony/yaml, psysh).
  • The workflow gets a top-level permissions: contents: read, which closes CodeQL alert [codeception] Improving documentation #1 (actions/missing-workflow-permissions).

Consumers are not affected: the lock and config.platform only apply to this repository.

Verification

composer install + vendor/bin/phpunit: 10 tests, 16 assertions, OK (1 PHPUnit deprecation, pre-existing).

gibiw added 2 commits October 27, 2026 15:22
The lock was resolved on PHP 8.2+ (codeception 5.3.4, brick/math 0.14)
while composer.json allows ^8.0, so Dependabot resolved against PHP 8.0
and could not apply security updates (guzzle 7.10.0 < 7.15.2).

- Pin config.platform.php to 8.1, matching CI.
- Drop roave/security-advisories: it conflicts with every PHP 8.1 release,
  so no lock can be resolved for the supported minimum; Dependabot and
  composer audit cover advisories.
- Regenerate the lock: guzzle 7.16.1, psr7 2.13.2, codeception 5.2.2.
The workflow had no top-level permissions block
(CodeQL actions/missing-workflow-permissions); default to contents: read.
@gibiw
gibiw merged commit 02df08d into master Oct 27, 2026
4 checks passed
@gibiw
gibiw deleted the fix/composer-platform branch October 27, 2026 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants