Shallow git clone?

Is there any way for cloud build to perform a shallow build clone? I’ve blown through my GitHub monthly bandwidth quota because it seems Cloud Build clones my whole repository every time a build happens… which is of course very bandwidth intensive.

Shallow git clone is available, but it can currently only be enabled via the API.

Hope that helps!