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 →
- Short term: buy a data pack or raise the budget to unblock builds.
- Reduce downloads: do not fetch LFS in jobs that do not need it (
lfs: falseinactions/checkout); fetch selectively withgit lfs pull --include. - Cache LFS objects between runs (
actions/cacheon.git/lfs). - 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.
More on Scale, Submodules, LFS and GitHub Automation
A monorepo has 4 GB of history and developers only touch one service. How do you make their day-to-day faster?IntermediateDesigners commit PSD and video assets, and the repo keeps growing. How do you move them to Git LFS?IntermediateA repository uses a submodule. How does a developer get the right version of it?BeginnerSubmodules, subtree or a package manager for sharing code between repos?IntermediateCI cannot clone a private submodule: authentication fails in `actions/checkout`.IntermediateYou must remove a submodule completely.Beginner