Skip to content

fix(ci): skip composer advisory audit for integration test installs#3950

Open
Leiyks wants to merge 3 commits into
masterfrom
leiyks/fix-ci-laravel-composer-audit
Open

fix(ci): skip composer advisory audit for integration test installs#3950
Leiyks wants to merge 3 commits into
masterfrom
leiyks/fix-ci-laravel-composer-audit

Conversation

@Leiyks

@Leiyks Leiyks commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

Problem

We pin specific framework versions as integration-test fixtures. When Packagist publishes a security advisory against a pinned version, composer's resolver-level block-insecure audit refuses to load it, and the affected integration jobs fail during composer setup before any test runs:

- Root composer.json requires laravel/framework 12.44.0 ... found laravel/framework[v12.44.0]
  but these were not loaded, because they are affected by security advisories.

This is an environmental break, not a code regression — we intentionally pin these versions and don't want to bump them.

Fix

Disable audit.block-insecure at the single shared composer invocation point (run_composer_with_retry in the Makefile), before composer update. This unblocks any advisory-flagged pinned version across all framework/integration installs at once.

Note: --no-audit only skips the post-install audit report; it does not lift the resolver block. The audit.block-insecure config must be set on the project being updated (verified in docker).

…installs

A Packagist security advisory (PKSA-mdq4-51ck-6kdq / CVE-2026-48019, CRLF
injection in the default email validation rule) flags essentially all
Laravel framework versions this repo pins for integration tests
(>=9,<12.60.0 and >=13,<13.10.0). Composer's resolver refuses to load the
pinned versions, so every Laravel integration job fails during the composer
setup phase before any test runs.

These are intentionally pinned test fixtures, not shipped code, so disable
composer's resolver-level 'block-insecure' audit at the shared composer
invocation point (run_composer_with_retry). --no-audit only skips the
post-install audit report and does NOT lift the resolver block, so the
audit.block-insecure config must be set on the project being updated.

This is applied at the single shared point used by all framework/integration
composer installs, so it covers every affected Laravel version at once (and
harmlessly also covers other frameworks such as Symfony).
@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jun 3, 2026

Copy link
Copy Markdown

Pipelines  Tests

Fix all issues with BitsAI

⚠️ Warnings

🚦 8 Pipeline jobs failed

DataDog/apm-reliability/dd-trace-php | ASAN test_c with multiple observers: [8.5]   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | min install tests   View in Datadog   GitLab

DataDog/apm-reliability/dd-trace-php | test_composer: [8.4]   View in Datadog   GitLab

View all 8 failed jobs.

ℹ️ Info

No other issues found (see more)

🧪 All tests passed
❄️ No new flaky tests detected

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 54.08% (+0.00%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: f34210b | Docs | Datadog PR Page | Give us feedback!

@Leiyks Leiyks closed this Jun 9, 2026
@Leiyks Leiyks reopened this Jun 22, 2026
@Leiyks Leiyks force-pushed the leiyks/fix-ci-laravel-composer-audit branch from b0b1e29 to 7712c44 Compare June 22, 2026 13:57
@Leiyks Leiyks changed the title fix(ci): skip composer advisory audit for framework integration test installs fix(ci): skip composer advisory audit for integration test installs Jun 22, 2026
@Leiyks Leiyks marked this pull request as ready for review June 22, 2026 14:01
@Leiyks Leiyks requested a review from a team as a code owner June 22, 2026 14:01

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7712c4481d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Makefile Outdated
audit.block-insecure only exists since Composer 2.4; PHP 7.0/7.1 use the
Composer 2.2 LTS which rejects the setting and aborted every composer-driven
job. Composer 2.2 has no resolver block-insecure audit anyway, so ignore the
failure there with '|| true'.
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