claude-code - 💡(How to fix) Fix Code review (Preview): "Add a repository" shows no results for private GitHub org repos

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Root Cause

Root cause suspected: The OAuth app only requests identity scopes (verify identity, know resources, act on behalf) — no repo or read:org scope. The repo listing cannot see private org repos without these scopes.

Fix Action

Fix / Workaround

Workaround: None without purchasing a separate Anthropic API key for the GitHub Actions approach, which is an extra cost on top of the Claude Code subscription.

RAW_BUFFERClick to expand / collapse

Org settings: Claude Code org settings → Code review (Preview) → Configure → "Add a repository" dialog

Problem: Searching for repos in the "Add a repository" dialog returns "No repositories found" for all private repos in a GitHub organization.

Setup that is confirmed correct:

  • Claude GitHub App installed on org with "All repositories" + full PR permissions (repository_selection: all, pull_requests: write confirmed via API)
  • GitHub org checked under "GitHub organizations" in Claude Code org settings
  • GitHub OAuth app authorized by org admin
  • User is org admin and member of the GitHub org

Root cause suspected: The OAuth app only requests identity scopes (verify identity, know resources, act on behalf) — no repo or read:org scope. The repo listing cannot see private org repos without these scopes.

Expected: Private org repos should be listable when the Claude GitHub App is installed on the org and the user is an org admin.

Workaround: None without purchasing a separate Anthropic API key for the GitHub Actions approach, which is an extra cost on top of the Claude Code subscription.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING