Skip to content

Add React Doctor to GitHub Actions - #19

Closed
AndersonDesign1 wants to merge 19 commits into
mainfrom
react-doctor/add-github-actions
Closed

Add React Doctor to GitHub Actions#19
AndersonDesign1 wants to merge 19 commits into
mainfrom
react-doctor/add-github-actions

Conversation

@AndersonDesign1

Copy link
Copy Markdown
Owner

Adds a React Doctor scan to every pull request and every push to the default branch. The workflow file is documented inline.

Docs: https://www.react.doctor/ci

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Jun 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
clientra Ready Ready Preview, Comment Jun 9, 2026 10:39am

@coderabbitai

coderabbitai Bot commented Jun 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@AndersonDesign1, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 12 minutes and 11 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 688f970d-3ab9-4ed7-9122-3d59264874f3

📥 Commits

Reviewing files that changed from the base of the PR and between a0e02c0 and 1a157ab.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (47)
  • .github/workflows/react-doctor.yml
  • doctor.config.json
  • package.json
  • scripts/migrate-portal.ts
  • src/__tests__/api-invite-management.test.ts
  • src/components/auth/auth-shell.tsx
  • src/components/auth/worker-invite-form.tsx
  • src/components/common/panel-section.tsx
  • src/components/common/product-charts.tsx
  • src/components/common/route-pending.tsx
  • src/components/common/state-panel.tsx
  • src/components/evilcharts/charts/bar-chart.tsx
  • src/components/evilcharts/charts/line-chart.tsx
  • src/components/evilcharts/charts/radial-chart.tsx
  • src/components/evilcharts/charts/sankey-chart.tsx
  • src/components/evilcharts/ui/chart.tsx
  • src/components/evilcharts/ui/evil-brush.tsx
  • src/components/evilcharts/ui/legend.tsx
  • src/components/evilcharts/ui/tooltip.tsx
  • src/components/layout/portal-shell.tsx
  • src/components/projects/project-collaboration-panel.tsx
  • src/components/projects/project-files-panel.tsx
  • src/components/projects/project-milestones-panel.tsx
  • src/components/projects/project-updates-panel.tsx
  • src/db/records.ts
  • src/db/schema.ts
  • src/lib/api.ts
  • src/lib/insights.ts
  • src/lib/utils.ts
  • src/routes/api/admin/status-change-requests.ts
  • src/routes/api/admin/status-change-requests/$id.ts
  • src/routes/api/clients/$id/invites.ts
  • src/routes/api/invites/$id/approve.ts
  • src/routes/api/portal/activity.ts
  • src/routes/api/portal/files.ts
  • src/routes/api/portal/status-change-requests.ts
  • src/routes/api/portal/team.ts
  • src/routes/clients/$id.tsx
  • src/routes/dashboard.tsx
  • src/routes/portal/activity.tsx
  • src/routes/portal/files.tsx
  • src/routes/portal/index.tsx
  • src/routes/portal/projects/$id.tsx
  • src/routes/portal/team.tsx
  • src/routes/projects/$id.tsx
  • src/routes/settings.tsx
  • src/styles.css
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch react-doctor/add-github-actions

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Jun 6, 2026

Copy link
Copy Markdown

React Doctor

No React Doctor issues found in this scan.

Score Issues Errors Warnings Affected Files Scope
100 / 100 (Great) 0 0 0 0 48 files changed on react-doctor/add-github-actions vs. main

View workflow run

Generated by React Doctor. Questions? Contact founders@million.dev.

@greptile-apps

greptile-apps Bot commented Jun 6, 2026

Copy link
Copy Markdown

Greptile Summary

This PR introduces a new GitHub Actions workflow that runs a React Doctor scan on every pull request and every push to main, posting a sticky summary comment on each PR.

  • New workflow (.github/workflows/react-doctor.yml): configures triggers, concurrency cancellation, and least-privilege-ish permissions (contents: read, pull-requests: write, issues: write) for the scan and comment-posting steps.
  • Action references use mutable version tags (actions/checkout@v5, millionco/react-doctor@v1) rather than pinned commit SHAs, which leaves the workflow open to a supply-chain substitution attack given the write permissions in scope.

Confidence Score: 3/5

The workflow is straightforward and well-documented, but both action references use mutable version tags while holding write permissions, leaving a supply-chain substitution window open.

The only changed file is a new CI workflow that grants pull-requests: write and issues: write to a third-party action pinned by a movable tag. If the upstream tag is tampered with, every subsequent run executes untrusted code with those write tokens. Pinning both references to full commit SHAs would close that window entirely before merging.

.github/workflows/react-doctor.yml — the two uses: lines referencing mutable version tags need SHA pinning before the workflow is safe to land.

Security Review

  • Supply-chain risk via mutable action tags (.github/workflows/react-doctor.yml lines 44–46): actions/checkout@v5 and millionco/react-doctor@v1 are pinned to movable version tags, not immutable commit SHAs. A compromised upstream tag would execute attacker code in a runner that holds pull-requests: write and issues: write tokens.

Important Files Changed

Filename Overview
.github/workflows/react-doctor.yml New workflow adding React Doctor scan on PRs and pushes to main; both action references use mutable version tags instead of pinned commit SHAs, posing a supply-chain risk given the write permissions granted.

Sequence Diagram

sequenceDiagram
    participant GH as GitHub Event
    participant Runner as Actions Runner
    participant Checkout as actions/checkout@v5
    participant RD as millionco/react-doctor@v1
    participant API as GitHub API

    GH->>Runner: pull_request or push to main
    Runner->>Checkout: Fetch repo source (contents: read)
    Checkout-->>Runner: Source code checked out
    Runner->>RD: Run React Doctor scan
    RD->>API: Read changed files list (pull-requests: write)
    RD->>API: Post/update sticky summary comment (issues: write)
    API-->>RD: Comment created/updated
    RD-->>Runner: Scan result (pass / fail)
Loading
Prompt To Fix All With AI
Fix the following 1 code review issue. Work through them one at a time, proposing concise fixes.

---

### Issue 1 of 1
.github/workflows/react-doctor.yml:44-46
**Third-party actions not pinned to full commit SHA**

Both `actions/checkout@v5` and `millionco/react-doctor@v1` reference mutable version tags. If either upstream repo is compromised and the tag is force-pushed, the next workflow run silently executes attacker-controlled code — here with `pull-requests: write` and `issues: write` in scope, enabling malicious PR comments, repository content reads, or issue tampering. GitHub's security guidance recommends pinning every action to a full 40-character commit SHA and keeping the version tag as a comment for readability, e.g., `uses: actions/checkout@<sha> # v5`.

Reviews (1): Last reviewed commit: "ci: add React Doctor GitHub Actions work..." | Re-trigger Greptile

Comment on lines +44 to +46
- uses: actions/checkout@v5

- uses: millionco/react-doctor@v1

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 security Third-party actions not pinned to full commit SHA

Both actions/checkout@v5 and millionco/react-doctor@v1 reference mutable version tags. If either upstream repo is compromised and the tag is force-pushed, the next workflow run silently executes attacker-controlled code — here with pull-requests: write and issues: write in scope, enabling malicious PR comments, repository content reads, or issue tampering. GitHub's security guidance recommends pinning every action to a full 40-character commit SHA and keeping the version tag as a comment for readability, e.g., uses: actions/checkout@<sha> # v5.

Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/react-doctor.yml
Line: 44-46

Comment:
**Third-party actions not pinned to full commit SHA**

Both `actions/checkout@v5` and `millionco/react-doctor@v1` reference mutable version tags. If either upstream repo is compromised and the tag is force-pushed, the next workflow run silently executes attacker-controlled code — here with `pull-requests: write` and `issues: write` in scope, enabling malicious PR comments, repository content reads, or issue tampering. GitHub's security guidance recommends pinning every action to a full 40-character commit SHA and keeping the version tag as a comment for readability, e.g., `uses: actions/checkout@<sha> # v5`.

How can I resolve this? If you propose a fix, please make it concise.

…ationErrorBanner, standard UI fields, and useCrudDialogs hook
…e-pass loops instead of map().filter() chains
…arnings, hoist default arrays, and improve accessibility
@AndersonDesign1
AndersonDesign1 deleted the react-doctor/add-github-actions branch June 9, 2026 11:36
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