From 859eae6f81243ee7867de35ec61f5d0ed468ad38 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Mon, 29 Jul 2024 12:36:06 -0300 Subject: [PATCH] sec: do not append session envs to git run Signed-off-by: Carlos Alexandro Becker --- pkg/ssh/cmd/git.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkg/ssh/cmd/git.go b/pkg/ssh/cmd/git.go index f6aea60ab..d8584e451 100644 --- a/pkg/ssh/cmd/git.go +++ b/pkg/ssh/cmd/git.go @@ -202,9 +202,6 @@ func gitRunE(cmd *cobra.Command, args []string) error { ) } - // Add ssh session & config environ - s := sshutils.SessionFromContext(ctx) - envs = append(envs, s.Environ()...) envs = append(envs, cfg.Environ()...) repoPath := filepath.Join(reposDir, repoDir)