Skip to content

Conversation

@mustansir14
Copy link
Contributor

Description:

This PR resolves #4570 by adding a rate limiter for the Github analyzer.

I have taken a generalized approach by refactoring NewAnalyzeClient to support a generalized and extensible HTTP client construction model using composable ClientOptions and custom RateLimitRoundTripper wrapper. This approach preserves existing analyzer and logging behavior while making it easy to layer additional functionality, such as HTTP-level rate limiting for the GitHub analyzer. This means enabling this functionality for other analyzers is as simple as creating the appropriate *rate.Limiter and supplying it to the client.

The integration tests were failing because the token in our secrets vault had expired. I regenerated the token and replaced it.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@mustansir14 mustansir14 requested a review from a team December 24, 2025 11:19
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.

GitHub Analyzer doesn't handle rate limit

1 participant