Please review the Community Note before submitting
Description
Maybe add the two flag will boost the scan and reduce the size.
Preferred Solution
if the --branch is not empty, we can first use --filter=blob:none and --no-checkout to clone git repository with less size, and than git fetch origin <branch> to fetch specific branch objects.
Additional Context
References