func NewEnvironmentFromOSWithKnownVars()

in pkg/runner/environment.go [45:67]


func NewEnvironmentFromOSWithKnownVars() (*Environment, error) {
	knownVars := []string{
		"HTTPS_PROXY",
		"HTTP_PROXY",
		"LANG",
		"LC_ALL",
		"LC_CTYPE",
		"LOGNAME",
		"NO_PROXY",
		"PATH",
		"SHELL",
		"TERM",
		"TMPDIR",
		"TZ",
		"USER",
		"all_proxy",
		"http_proxy",
		"https_proxy",
		"no_proxy",
	}

	return NewEnvironmentFromOS(func(envName string) bool { return !slices.Contains(knownVars, envName) })
}