Skip to content

fix: do not recurse submodules when cloning with credentials - #1212

Open
knQzx wants to merge 1 commit into
SwissDataScienceCenter:mainfrom
knQzx:no-recurse-submodules-creds
Open

fix: do not recurse submodules when cloning with credentials#1212
knQzx wants to merge 1 commit into
SwissDataScienceCenter:mainfrom
knQzx:no-recurse-submodules-creds

Conversation

@knQzx

@knQzx knQzx commented Aug 12, 2026

Copy link
Copy Markdown

Cloning with credentials recursed into submodules, forwarding the Authorization header to third party submodule hosts listed in gitmodules. This disables submodule recursion for credentialed clones.

go-git forwards the clone credentials to every host listed in .gitmodules
when RecurseSubmodules is enabled, leaking them to arbitrary third-party
remotes. Disable submodule recursion during clone.
@knQzx
knQzx requested review from a team and olevski as code owners August 12, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant