Repository navigation
Check composer.json and composer.lock in CI - #240
Open
shanesmithdev wants to merge 1 commit into
Open
shanesmithdev wants to merge 1 commit into
shanesmithdev wants to merge 1 commit into
Conversation
shanesmithdev
force-pushed
the
chore/composer-checks
branch
from
November 30, 2026 08:50
68c7455 to
b2b5b4d
Compare
shanesmithdev
force-pushed
the
chore/composer-checks
branch
from
November 30, 2026 08:51
b2b5b4d to
9973ea5
Compare
shanesmithdev
marked this pull request as ready for review
November 30, 2026 08:52
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.
Adds a Composer workflow with two checks:
composer validate --strictfails whencomposer.lockdoesn't matchcomposer.json, for example after a hand edit or a bad merge.composer audit --lockedfails when a locked package has a known security advisory. Abandoned packages are listed but don't fail it.They run as separate checks,
composer-validateandcomposer-audit. Once this is merged,composer-validatecan be added to the required checks onmainso an out-of-sync lock file blocks merging, while advisories stay non-blocking.Both checks only read
composer.jsonandcomposer.lock. They install nothing and need no plugin licence credentials, so they work the same for pull requests from forks. The workflow runs on pull requests, on pushes tomain, and every Monday, because new advisories are published even when nothing here changes.Screenshots