ci: Lighthouse CI + skip claude-review on forks#24
Conversation
The CLAUDE_CODE_OAUTH_TOKEN secret is not available in fork-PR contexts (GitHub security model), so the action always fails on PRs from raifdmueller/vibe-coding-risk-radar. For fork PRs, CodeRabbit already provides AI review automatically, and @claude mentions (via claude.yml, event-triggered) still work on demand. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Lighthouse CI runs on every PR against main. Budgets (category-level scores, error-blocking unless noted): Performance: >= 0.80 (baseline 0.89, desktop preset) Accessibility: >= 0.85 (baseline 0.89, color-contrast/labels flagged) Best Practices:>= 0.90 (baseline 1.00) SEO: >= 0.95 (baseline 1.00) Web Vitals as warnings (monitoring only, not blocking): LCP <= 2500ms, TBT <= 300ms, CLS <= 0.1 Setup: - @lhci/cli, http-server, wait-on as devDependencies - lighthouserc.json at repo root with desktop preset - .github/workflows/lighthouse.yml: build → serve → lhci autorun - Upload to temporary-public-storage (no LHCI server required) - .lighthouseci/ gitignored Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 22 minutes and 5 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the 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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Summary
Two CI improvements bundled (see #23):
1. Lighthouse CI with budgets
New workflow `lighthouse.yml` runs on every PR against `main`:
Budgets (established from local baseline measurement):
Web Vitals (warnings only, not blocking):
Known issues surfaced by the baseline (tracked as follow-ups):
2. Skip claude-code-review on fork PRs
The `CLAUDE_CODE_OAUTH_TOKEN` secret is not available in fork-PR contexts (GitHub security model), so `claude-code-review.yml` always failed on PRs from `raifdmueller/vibe-coding-risk-radar`. Added:
```yaml
if: github.event.pull_request.head.repo.full_name == github.repository
```
CodeRabbit already provides AI review on fork PRs, and `@claude` mentions (via `claude.yml`) still work on demand. Org-internal PRs are unaffected.
Test plan
Closes #23
🤖 Generated with Claude Code