Skip to content

ci: audit locked Composer dependencies - #26

Merged
gachakra merged 1 commit into
developfrom
ci/audit-locked-dependencies
Dec 4, 2026
Merged

gachakra merged 1 commit into
developfrom
ci/audit-locked-dependencies

Conversation

@gachakra

@gachakra gachakra commented Dec 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Audit the committed Composer lockfile after validation and before dependency installation.
  • Run composer --no-plugins --no-scripts audit --locked only in the PHP 8.4 matrix job, avoiding a duplicate audit of the same lockfile.
  • Include development and transitive dependencies. Retain Composer's default failure policy for abandoned packages and propagate audit failures without suppression.
  • Preserve existing check names, workflow triggers, read-only permissions, pinned action references, Docker configuration, and dependency versions.

Validation

  • Checked the workflow diff and confirmed that only the intended workflow file changes.
  • Verified that both dependency metadata and the tracked lockfile remain unchanged.
  • Actual Composer Audit and the existing PHP/Docker checks must pass in GitHub Actions; independent review is pending.

Scope

No changes to package distribution, library APIs, dependency versions, scheduled workflows, or releases.

@gachakra gachakra left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Independent review

No actionable findings. I reviewed 55687d4527cbe7aa84d21a12914a7e9af5c8ac0f. The only changed file is .github/workflows/ci.yml. Check names, the contents: read permission, checkout credential handling, and Action SHA pins are unchanged. The manifest, lockfile, dependency versions, library code, and Docker configuration are unchanged.

Independent audit. Composer 2.11.3 passed strict validation and ran composer --no-plugins --no-scripts audit --locked before any dependency installation. It returned exit code 0. The lock contains 26 development packages, one direct and 25 transitive, and zero production Composer packages. JSON output reported zero security advisories and zero abandoned packages. PHP itself is a platform requirement outside this package audit.

Failure behavior. The Audit step is a single command with no exit-code suppression. Separate lockfile fixtures exercised Composer's nonzero exit for a reported transitive advisory and for a transitive package marked abandoned in the lock. Both returned 1 with the default policy. A fresh-cache network-disabled run returned 100 and stopped the CI-style shell before its next command. Abandonment in a locked audit follows the package metadata recorded in the lockfile. Composer audit options · Composer policy settings

CI on the reviewed head. PHP 8.4 ran Validate → Audit → Install successfully. PHP 8.5 passed validation and installation and skipped the Audit step as intended. The PHP 8.4 log shows Composer 2.11.3 running the exact command. Both PHP checks and Docker development environment passed. Workflow run

@gachakra
gachakra merged commit c70c261 into develop Dec 4, 2026
3 checks passed
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.

1 participant