Skip to content

fix: audit composer lock file with --locked#143

Merged
turegjorup merged 2 commits into
developfrom
feature/composer-audit-locked
Jun 2, 2026
Merged

fix: audit composer lock file with --locked#143
turegjorup merged 2 commits into
developfrom
feature/composer-audit-locked

Conversation

@turegjorup
Copy link
Copy Markdown
Contributor

Summary

The composer audit GitHub Action fails with the latest Composer:

No installed packages found. Please run "composer install" before running "audit" or pass "--locked" to audit the lock file.

Recent Composer versions no longer audit the lock file by default. The composer-audit job does not run composer install, so this PR audits the lock file explicitly with --locked.

Reproduced in devops_itksites CI.

Files Changed

  • github/workflows/composer.yaml - composer auditcomposer audit --locked (all template copies are symlinks to this file, so they inherit the fix)
  • CHANGELOG.md - Added entry under Open PR's

Test Plan

  • Run the Composer workflow against a project with a composer.lock using the latest Composer.
  • Expected: the composer-audit job audits the lock file and passes (or reports advisories) instead of erroring with "No installed packages found".

🤖 Generated with Claude Code

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>
@turegjorup turegjorup self-assigned this Jun 2, 2026
@turegjorup turegjorup requested a review from cableman June 2, 2026 11:35
@turegjorup turegjorup merged commit 143d8e0 into develop Jun 2, 2026
7 checks passed
@turegjorup turegjorup deleted the feature/composer-audit-locked branch June 2, 2026 11:36
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