From 65201ff6be55bd05692f57cbadc23352334fbb19 Mon Sep 17 00:00:00 2001 From: Tingluo Huang Date: Tue, 28 Nov 2023 09:43:13 -0500 Subject: [PATCH] Include whether http proxy configured as part of UserAgent. (#3009) --- src/Runner.Common/HostContext.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Runner.Common/HostContext.cs b/src/Runner.Common/HostContext.cs index 52cd3673438..78ea8ba4cbe 100644 --- a/src/Runner.Common/HostContext.cs +++ b/src/Runner.Common/HostContext.cs @@ -200,6 +200,10 @@ public HostContext(string hostType, string logFile = null) { _trace.Info($"No proxy settings were found based on environmental variables (http_proxy/https_proxy/HTTP_PROXY/HTTPS_PROXY)"); } + else + { + _userAgents.Add(new ProductInfoHeaderValue("HttpProxyConfigured", bool.TrueString)); + } if (StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable("GITHUB_ACTIONS_RUNNER_TLS_NO_VERIFY"))) {