fix: audit composer lock file with --locked#143
Merged
Conversation
Recent Composer versions no longer audit the lock file by default and fail with "No installed packages found" when composer install has not been run. The composer-audit job does not install dependencies, so audit the lock file explicitly with --locked. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…udit-locked # Conflicts: # CHANGELOG.md
cableman
approved these changes
Jun 2, 2026
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.
Summary
The
composer auditGitHub Action fails with the latest Composer:Recent Composer versions no longer audit the lock file by default. The
composer-auditjob does not runcomposer install, so this PR audits the lock file explicitly with--locked.Reproduced in devops_itksites CI.
Files Changed
github/workflows/composer.yaml-composer audit→composer audit --locked(all template copies are symlinks to this file, so they inherit the fix)CHANGELOG.md- Added entry under Open PR'sTest Plan
composer.lockusing the latest Composer.composer-auditjob audits the lock file and passes (or reports advisories) instead of erroring with "No installed packages found".🤖 Generated with Claude Code