Repository navigation
ci: fix react-doctor workflow failing on report schema v3 - #198
Merged
Merged
Conversation
The pinned commit (0b4f4f4, 2026-06-20) ships an older action script whose ensure-json-report.mjs validator only accepts report schemaVersion 1 and 2, while react-doctor 0.9.23 emits schemaVersion 3. Every scan therefore gets replaced by the fallback error report and the job fails with 'Process completed with exit code 1' even though the repo is clean. v2.4.0 (695e46e) accepts schema versions 1-3, and also stops treating CLI banner output on stdout as an unparseable report.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 6 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the React Doctor v2.4.0 pin update.
No open issues 🎉
What changed in this PR
Updates the React Doctor action pin to v2.4.0 to address CI failures caused by schema-v3 reports and npm banner output.
Changes:
- Bumps only React Doctor, independently of the broader dependency updates in PR #196.
- Keeps the action pinned to a full commit SHA.
| File | Description |
|---|---|
.github/workflows/react-doctor.yml |
Updates the React Doctor action pin to commit 695e46e (v2.4.0). |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
react-doctorworkflow fails on every PR that touches React files:The pinned action commit (
0b4f4f4, 2026-06-20) bundles an olderensure-json-report.mjswhose validator only accepts reportschemaVersion1 and 2:The CLI the action installs (
react-doctor@0.9.23, the currentlatest) emitsschemaVersion: 3. The validator rejects the report, replaces it with the fallbackok: falseerror report, and the scan step exits 1 — so a clean repo still fails the check.The same script also only parses a report starting at byte 0, so npm banner output on stdout was fatal too.
Fix
Bump the pin to
v2.4.0(695e46e), the current action release. Its script accepts schema versions 1–3 and scans stdout for the report payload:The first release with schema-3 support was
v2.2.7(2026-07-10);v2.4.0is the latest tag, so this pins the newest available action rather than the minimum viable one.Verified locally by running the old and new
ensure-json-report.mjsagainst a real schema-3 report from this repo:ok: falsefallbackschemaVersion: 3,ok: true)Note: dependabot PR #196 already bumps this same line to
01820bb4(v2.2.8), which also contains the fix — this PR is the same fix delivered against currentmainwithout the other seven workflow bumps.