Skip to content

feat(search): replace retired Searchcode with Sourcegraph global search - #338

Merged
madneal merged 5 commits into
masterfrom
codex/fix-searchcode-legacy-api
Aug 8, 2026
Merged

feat(search): replace retired Searchcode with Sourcegraph global search#338
madneal merged 5 commits into
masterfrom
codex/fix-searchcode-legacy-api

Conversation

@madneal

@madneal madneal commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • Replace the retired Searchcode global endpoint with Sourcegraph's Stream API.
  • Search with count:all across Sourcegraph-indexed repositories, explicitly including forks and archived repositories.
  • Keep existing searchcode rules compatible; no database migration is required.
  • Add sourcegraph URL/token configuration and rule/provider UI labels.
  • Record upstream partial-result warnings in scan logs.

Scope and limitation

This covers all repositories indexed by the configured Sourcegraph instance (public sourcegraph.com by default), alongside the existing GitHub and GitLab providers. No third-party index can guarantee every public repository; unindexed repositories, search timeouts, and upstream result limits are reported as partial coverage.

Verification

  • GO111MODULE=on go test ./search/sourcegraphsearch ./search
  • GO111MODULE=on go build ./...

@madneal madneal changed the title fix(searchcode): skip retired legacy API feat(searchcode): migrate to repository-scoped API Aug 8, 2026
@madneal madneal changed the title feat(searchcode): migrate to repository-scoped API fix(searchcode): disable retired global API Aug 8, 2026
@madneal madneal changed the title fix(searchcode): disable retired global API feat(search): replace retired Searchcode with Sourcegraph global search Aug 8, 2026
@madneal
madneal merged commit bd6d444 into master Aug 8, 2026
3 checks passed
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