From 5810bf8a5ab88a0d630e130d9ee2459e29514595 Mon Sep 17 00:00:00 2001 From: Chirag S Date: Wed, 11 Feb 2026 11:42:15 +0530 Subject: [PATCH] feat: [CI-18951]: check for HARNESS prefixed proxy variables --- docker.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker.go b/docker.go index 2ff82ac..efd448d 100644 --- a/docker.go +++ b/docker.go @@ -605,7 +605,13 @@ func getProxyValue(key string) string { return value } - return os.Getenv(strings.ToUpper(key)) + value = os.Getenv(strings.ToUpper(key)) + + if len(value) > 0 { + return value + } + + return os.Getenv("HARNESS_" + strings.ToUpper(key)) } // helper function that looks to see if a proxy value was set in the build args.