Where does your code read GitHub’s rate field?
GitHub documents the removal of rate from GET /rate_limit in REST API version 2026-03-10. The remaining request count is available under resources.core. In a test repository, External Dependency Radar located both the API call and the old field access in the same file.
Try the field change
We constructed this sample from the documented contract with 42 requests remaining. Choose which expression to read from the same JSON. It runs in your browser without calling GitHub.
Reading data.rate.remaining fails because the rate field is missing. Reading data.resources.core.remaining returns 42.
{
"resources": {
"core": {
"remaining": 42
}
}
}The two lines EDR found
Line 3 identifies the endpoint. Line 5 reads the removed field. EDR linked both lines at the scanned commit so the maintainer could review the field access.
- Line 3
fetch('https://api.github.com/rate_limit')- Line 5
return data.rate.remaining;
Before migrating, check the version your integration requests in X-GitHub-Api-Version. If it uses the old field, update the expression and test with a response from the new version.
Check your own repository
Free covers 1 repository and 5 providers. The scan runs in your GitHub Actions account and uses that repository’s available quota.
Maintaining several repositories? Solo costs USD 5 per month for up to 3 repositories and 10 providers.
Run your first scan
- Create your free EDR workspace with GitHub. In Monitoring, select Connect repositories with GitHub and authorize the repository you want to scan. An organization owner may need to approve the installation.
- Return to Monitoring and choose Refresh repositories. Select your repository and the providers its code uses, then choose Save monitoring.
- Open Intelligence and find Install Repository Impact. Choose Show installation workflow. Copy the generated YAML into
.github/workflows/external-dependency-radar.ymlin your repository and get it onto the default branch through your usual review process. - In your repository’s Actions tab, open External Dependency Radar Repository Impact and choose Run workflow. After the upload step succeeds, return to Intelligence to see the completed analysis. A result with zero matches means the scan found no code references matching the provider changes it checked.