Repository navigation
Harden Dependabot and add composer audit - #63
Merged
Merged
Conversation
siephp's lock still resolves on its minimum PHP, so Dependabot works today, but nothing stops a local composer update on a newer PHP from moving the lock past 8.3 — which silently breaks every Dependabot run, as happened in TbbcMoneyBundle. - composer.json: pin config.platform.php to 8.3.0 (the require floor), so the lock is always resolved for the lowest supported PHP - dependabot.yml: group security updates, add a 7-day cooldown and a github-actions ecosystem to keep the SHA pins fresh - CI: add a composer audit job so new advisories turn the nightly run red Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01G1B1haEbMV4nwwwdJ4yxmY
There was a problem hiding this comment.
🟢 Approval recommended
The configuration is valid and consistently enforces minimum-PHP dependency resolution and automated security checks.
0 open findings
What changed in this PR
Hardens dependency updates around the minimum supported PHP version and adds automated vulnerability auditing.
Changes:
- Pins Composer resolution to PHP 8.3 and updates lock metadata.
- Adds nightly
composer audit --locked. - Configures grouped, cooled-down Composer and GitHub Actions updates.
| File | Description |
|---|---|
composer.json |
Pins Composer’s platform PHP version to 8.3.0. |
composer.lock |
Records the PHP platform override. |
.github/workflows/code_checks.yaml |
Adds the dependency audit CI job. |
.github/dependabot.yml |
Adds action updates, cooldowns, and security grouping. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
siephp's
composer.lockstill resolves on its minimum PHP (8.3), so Dependabot works today andcomposer auditis clean. Nothing protects that, though: one localcomposer updateon PHP 8.4/8.5 can move the lock past 8.3. Dependabot resolves at the lowest PHP allowed byrequire.php, so every run, security fixes included, would then end in "update not possible" while still showing green. That is what happened in TbbcMoneyBundle.Changes
composer.json: pinconfig.platform.phpto8.3.0(therequirefloor), so the lock is always resolved for the lowest supported PHP whatever PHP runscomposer update. The lock contents are unchanged; only the content hash andplatform-overrideschange. All CI jobs usecomposer install, so the matrix (8.3–8.5) is unaffected.dependabot.yml: asecuritygroup (one PR per run instead of one per advisory), a 7-daycooldown, and agithub-actionsecosystem so the SHA-pinned actions (checkout v5, cache v4) get bumped. Also fixes the "path versions" typo.auditjob (composer audit --locked), so a new advisory turns the nightly run red instead of going unnoticed.🤖 Generated with Claude Code
https://claude.ai/code/session_01G1B1haEbMV4nwwwdJ4yxmY
Generated by Claude Code