mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-12-04 06:21:59 +09:00
github_repo_analyze returned `git remote get-url origin` verbatim. A remote with embedded credentials (https://x-access-token:<token>@github.com/..., the form CI checkouts and some credential helpers write) put the token into MCP tool output, where it reaches the model and session transcripts. Strip URL userinfo before returning it. Greedy up to the last `@` in the authority, so a raw `@` in a password cannot leave a fragment behind. scp-form remotes (git@host:o/r) carry no secret and are unchanged. Found while reviewing #4571, which widened the same parser. Co-authored-by: r <r@x>