Interview Prep/Git & GitHub/Scale, Submodules, LFS and GitHub Automation

Your GitHub LFS bandwidth quota is exhausted and CI pulls fail. What do you do?

AdvancedScenarioScale, Submodules, LFS and GitHub Automation
Answer

Situation read → Every CI checkout downloads LFS objects, which counts against bandwidth.

What I'd do →

  1. Short term: buy a data pack or raise the budget to unblock builds.
  2. Reduce downloads: do not fetch LFS in jobs that do not need it (lfs: false in actions/checkout); fetch selectively with git lfs pull --include.
  3. Cache LFS objects between runs (actions/cache on .git/lfs).
  4. Long term, consider moving big assets to object storage (S3) with versioned references, or a self-hosted LFS server.

Why → Most CI jobs, such as linting, never need the binaries.

Interview tip → Forks also draw bandwidth from the upstream owner's quota.

All Git & GitHub questions Roadmap: Git & GitHub

More on Scale, Submodules, LFS and GitHub Automation