From 4daebdd422a6ba8c04162d023f8be355a8fe3184 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 30 Jul 2024 10:31:09 -0300 Subject: [PATCH] sec: do not append session envs to git run (#544) 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)