For large repositories (hundreds of MB plus LFS assets):
- A clone or fetch stops once its transfer exceeds GIT_CLONE_TIMEOUT_SECS
(default 30 min) or GIT_CLONE_MAX_MB (default 4096), and the run fails
with that reason instead of holding a scan slot. A failed clone no
longer leaves a half-cloned directory that the next run would fetch.
GIT_CLONE_DEPTH optionally clones a shallow history; unset (the
default) keeps the full history the secret scan and PR reviews need.
- libgit2 runs no LFS filter, so LFS files stay pointer files. A repository
whose .gitattributes keeps files in LFS now records a skipped
`lfs_objects` stage (SkipCode::LfsNotFetched) listing the patterns.
- Committed build output and installed third-party code of apps count as
vendor code: Gradle build/ beside a build.gradle and .gradle/, Pods/
beside a Podfile, Carthage/ beside a Cartfile, DerivedData/, and in a
Unity project Library/, Temp/, Obj/, Logs/, Builds/, UserSettings/ and
Assets/Plugins/. Matched only beside the file that makes them so.
Refs #435.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p