feat(ci): add react doctor workflow - #279
Closed
paulbalaji wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Adds React Doctor GitHub Action to scan for React security, performance, correctness, and accessibility issues on PRs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
paulbalaji
force-pushed
the
add-react-doctor-ci
branch
from
February 20, 2026 17:32
89c15c0 to
4ed1664
Compare
paulbalaji
added a commit
that referenced
this pull request
Feb 20, 2026
Fixes from React Doctor analysis (#279): Errors: - Add missing alt={title} on <img> in TokenIcon.tsx - Add missing alt="" on background <img> in og.tsx Warnings fixed: - ContentDetailsCard: replace useEffect with render-time state sync for bodyDecodeType - SearchFilterBar: sync local DatetimeSelector state with prop changes - CollateralCards: use txHash as stable key instead of array index - IcaDetailsCard: use destinationAddress in key, change <label> to <span> - GasDetailsCard: extract default {} to module-level constant, use composite key - ContentDetailsCard: change unassociated <label> to <span> - WarpTransferDetailsCard: parallelize 3 independent awaits with Promise.all - MessageSearch: wrap useState initializers in lazy arrow functions Skipped (legitimate patterns): - [messageId].tsx: pages router redirect in useEffect - useMessageDeliveryStatus: useEffect for toast on error state - _app.tsx: useIsSsr hook controls SSR/client render split - MessageSearch: 6 useState calls (independent filter state) - MessageSearch: 6 setState in hydration useEffect (one-time URL sync) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| id: react-doctor | ||
| uses: millionco/react-doctor@0.0.1 | ||
| with: | ||
| verbose: 'true' |
There was a problem hiding this comment.
Unpinned third-party action execution
Medium Severity
The workflow runs millionco/react-doctor@0.0.1 from a moving ref instead of a commit SHA. If the tag is ever retargeted or the upstream repo is compromised, arbitrary code could execute in CI on PRs with the workflow’s token and repo read access.
|
|
||
| - name: Print score | ||
| run: | | ||
| echo "React Doctor score: ${{ steps.react-doctor.outputs.score }}/100" |
There was a problem hiding this comment.
5 tasks
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.


Summary
Test plan
🤖 Generated with Claude Code
Note
Low Risk
CI-only change that adds a new diagnostic workflow; no production code or runtime behavior is modified.
Overview
Adds a new GitHub Actions workflow (
.github/workflows/react-doctor.yml) that runs on PRs tomain(and manually) to executemillionco/react-doctor@0.0.1with verbose output.The job checks out the repo, runs React Doctor, and prints the resulting
/100score from the action outputs.Written by Cursor Bugbot for commit 4ed1664. This will update automatically on new commits. Configure here.