From 9772fa769eb5bea3b3943ba6742aa5dd79ff0e8d Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sun, 18 Oct 2026 02:32:05 +0000 Subject: [PATCH] fix: copy ctx.params to avoid mutating shared dict in get_cli_args --- codecov_cli/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codecov_cli/main.py b/codecov_cli/main.py index 2568ef996..8d7e6e47c 100644 --- a/codecov_cli/main.py +++ b/codecov_cli/main.py @@ -58,7 +58,7 @@ def cli( verbose: bool = False, disable_telem: bool = False, ): - ctx.obj["cli_args"] = ctx.params + ctx.obj["cli_args"] = dict(ctx.params) ctx.obj["cli_args"]["version"] = f"cli-{__version__}" configure_logger(logger, log_level=(logging.DEBUG if verbose else logging.INFO)) ctx.help_option_names = ["-h", "--help"]