Files
ruflo/v3/@claude-flow/cli/src
rUvandr 27b48e6ba4 fix(github): redact credentials from github_repo_analyze remoteUrl (#4577)
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>
2026-10-29 09:41:56 -04:00
..
…
…
…
…
…