From 05bf2493a5944f19631822bd6c362defb064ef78 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 21 Jul 2025 14:35:33 +0200 Subject: [PATCH] fix: do not pass by environ to ffmpeg (#5871) Signed-off-by: Ettore Di Giacinto --- pkg/utils/ffmpeg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/utils/ffmpeg.go b/pkg/utils/ffmpeg.go index 03384fa20..061017bb5 100644 --- a/pkg/utils/ffmpeg.go +++ b/pkg/utils/ffmpeg.go @@ -11,7 +11,7 @@ import ( func ffmpegCommand(args []string) (string, error) { cmd := exec.Command("ffmpeg", args...) // Constrain this to ffmpeg to permit security scanner to see that the command is safe. - cmd.Env = os.Environ() + cmd.Env = []string{} out, err := cmd.CombinedOutput() return string(out), err }