CI/CD & GitHub Actions (50 Qs)•Part 3: Enterprise Scale, Compliance & Production Hardening (Senior / Staff)
How do you mitigate GitHub Actions Rate Limits and API Outages?
senior LevelMost AskedState ManagementCI/CD & DevOpsHTTP & REST APIs
In Simple Words:
- Requests to the GitHub API authenticated with
GITHUB_TOKENhave an hourly limit of 1,000 requests per repository (Enterprise has higher). - Mitigation: Cache Docker images in private container registries (Amazon ECR / Google Artifact Registry) to avoid Docker Hub rate limits. Cache npm packages via private mirrors (Verdaccio / Artifactory). Implement exponential backoff when querying GitHub GraphQL APIs.