fix: Add ACTIONS_BOT_TOKEN and VBOT_GITHUB_API_TOKEN to token check#167
fix: Add ACTIONS_BOT_TOKEN and VBOT_GITHUB_API_TOKEN to token check#167JakeSCahill merged 4 commits intomainfrom
Conversation
The getGitHubToken() helper was missing ACTIONS_BOT_TOKEN (used in CI) and VBOT_GITHUB_API_TOKEN (used in legacy code), causing authentication to fail and hitting unauthenticated rate limits (60 req/hr instead of 5000 req/hr). This was causing 403/429 errors when checking cloud-docs for 471 connectors. Updated token priority order: 1. REDPANDA_GITHUB_TOKEN 2. ACTIONS_BOT_TOKEN (CI) 3. GITHUB_TOKEN (GitHub Actions default) 4. VBOT_GITHUB_API_TOKEN (legacy) 5. GH_TOKEN (GitHub CLI)
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughThe PR modifies the environment variable priority chain in the Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
✅ Deploy Preview for docs-extensions-and-macros ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Use GitHub Tree API to fetch entire directory structure in a single API call instead of checking each connector individually. This reduces API calls from 471 to 1, making the check ~108x faster (from 30-60s to ~280ms). Changes: - Fetch recursive tree of modules/develop/pages/connect/components/ - Build in-memory set of existing files for O(1) lookup - Check connectors against this set (no additional API calls) - Graceful fallback to individual checks if tree API fails Performance: - OLD: 471 individual API calls (~30-60 seconds) - NEW: 1 tree API call (~280ms) - Speedup: 108x faster
Replace emoji characters with standard text labels (INFO, WARNING) for better compatibility and cleaner log output.
The
getGitHubToken()helper was missingACTIONS_BOT_TOKEN(used in CI) andVBOT_GITHUB_API_TOKEN(used in legacy code), causing authentication to fail and hitting unauthenticated rate limits (60 req/hr instead of 5000 req/hr).This was causing 403/429 errors when checking cloud-docs for 471 connectors.
Updated token priority order: