Skip to content

fix: resolve composer audit failures - #30

Merged
turegjorup merged 1 commit into
developfrom
fix/composer-audit
Jul 7, 2026
Merged

fix: resolve composer audit failures#30
turegjorup merged 1 commit into
developfrom
fix/composer-audit

Conversation

@turegjorup

Copy link
Copy Markdown
Contributor

Make the composer-audit CI check pass again (currently red on every PR, e.g. #28).

Changes

  • .github/workflows/composer.yaml — audit the lock file directly: composer auditcomposer audit --locked. The job ran in a fresh container with no composer install, so it errored with "No installed packages found" before auditing anything. --locked matches the updated devops_itkdev-docker template (its PR #143) and needs no install.
  • composer.lock — update the vulnerable packages to patched versions, within the existing composer.json constraints (no composer.json change; all transitive):
    • twig/twig 3.26.0 → 3.28.0
    • symfony/* (security-http, security-core, http-kernel, http-foundation, routing, error-handler, event-dispatcher, string, var-dumper, …) → latest 7.4.x patches
    • guzzlehttp/guzzle 7.10.3 → 7.13.2, guzzlehttp/psr7 2.8.1 → 2.12.3
  • CHANGELOG.md[Unreleased] entry.

Why

composer audit reported 14 advisories across 6 packages (incl. high-severity symfony/security-http firewall bypass CVE-2026-48489 and twig/twigCVE-2026-49981), all published after the last green run on 2026-05-22. Bumping to the patched releases clears every advisory.

Verification

  • composer audit --lockedNo security vulnerability advisories found.
  • bin/console lint:container → OK.
  • Full API test suite → 19 tests, 44 assertions, OK (with test fixtures loaded).

Note

The composer.yaml header says the file is templated from devops_itkdev-docker — the --locked change there is already merged, so this is a sync of that one line. A fuller template re-sync (e.g. actions/checkout@v6) is out of scope here.

The composer-audit CI job failed for two reasons: it ran `composer audit`
in a fresh container with no install (so it errored with "No installed
packages found"), and once running it reported 14 advisories across 6
packages (twig, symfony/*, guzzle) published after the last green run.
Audit the lock file directly with `composer audit --locked` (matching the
updated devops_itkdev-docker template) and update the vulnerable
dependencies to patched versions within the existing constraints. All
advisories clear; the API test suite passes.
@turegjorupturegjorup self-assigned this Jul 7, 2026
@github-actions

Copy link
Copy Markdown

No changes detected in API specification

@turegjorup
turegjorup merged commit 96ecfa8 into developJul 7, 2026
12 checks passed
@turegjorup
turegjorup deleted the fix/composer-audit branch July 7, 2026 08:39
Sign up for freeto 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.

1 participant

@turegjorup