diff --git a/internal/config/command.go b/internal/config/command.go index ba4094ee1..f3bf34c29 100644 --- a/internal/config/command.go +++ b/internal/config/command.go @@ -76,8 +76,10 @@ func shellCommand(command string) *exec.Cmd { if strings.HasPrefix(strings.TrimSpace(command), `"`) { command = "call " + command } + /* #nosec G204 -- Provider commands are intentionally evaluated by a shell to support features like pipes and env expansions. The command string originates from the user's trusted local config. */ return exec.Command("cmd", "/C", command) } + /* #nosec G204 -- Provider commands are intentionally evaluated by a shell to support features like pipes and env expansions. The command string originates from the user's trusted local config. */ return exec.Command("sh", "-c", command) }