Skip to content

chore(ci): add composer audit job - #2

Merged
evan-burrell merged 4 commits into
2.0from
chore/composer-audit
Nov 5, 2026
Merged

evan-burrell merged 4 commits into
2.0from
chore/composer-audit

Conversation

@evan-burrell

Copy link
Copy Markdown

What

Adds a composer audit check to CI, matching the composer_audit job in street-orb and spectre-orb.

  • Composer audit (blocking): fails on any known advisory in the prefer-stable tree (what a consumer gets on a fresh install today), or in the committed composer.lock if the repo has one.
  • prefer-lowest, report only: resolves the lowest versions the runtime constraints allow (--no-dev) and prints any advisories. It never fails the build; most hits are transitive.

Why it differs from the orb job

The orbs run composer audit --locked, which needs a committed composer.lock. Libraries usually don't have one, so the job resolves the tree first. It sets COMPOSER_NO_SECURITY_BLOCKING=1 because Composer 2.9+ otherwise silently skips vulnerable versions during update, so the audit would always pass.

Part of a sweep across every package on Satis (reference PRs: AgentSoftware/spectre-rulekit#35, AgentSoftware/deposit-protection-sdk#52). Dependabot alerts and security updates were also enabled on this repo.

🤖 Generated with Claude Code

evan-burrell and others added 4 commits November 5, 2026 09:44
Blocking audit of the prefer-stable dependency tree (what consumers get on a
fresh install), plus a report-only prefer-lowest --no-dev audit. Mirrors the
composer_audit job in street-orb/spectre-orb.

Co-Authored-By: Claude <noreply@anthropic.com>
The committed lock pins Laravel 5.6 and is out of date with composer.json;
CI installs with composer update, so gating on the lock flagged packages
nothing actually installs.

Co-Authored-By: Claude <noreply@anthropic.com>
--no-dev installs leave out dev tooling (e.g. testbench) that post-autoload
scripts call, which failed the job before the audit ran.

Co-Authored-By: Claude <noreply@anthropic.com>
@evan-burrell
evan-burrell merged commit 49ecb98 into 2.0 Nov 5, 2026
8 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