Skip to content

Commit

Permalink
sec: do not append session envs to git run
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <[email protected]>
  • Loading branch information
caarlos0 committed Jul 29, 2024
1 parent b4da757 commit 859eae6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/ssh/cmd/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 859eae6

Please sign in to comment.