fix missing default user-agent for jitconfig runner. (#3473)

This commit is contained in:
Tingluo Huang
2024-09-25 09:01:53 -04:00
committed by GitHub
parent ddf41af767
commit 6d7446a45e
5 changed files with 26 additions and 9 deletions

View File

@@ -237,6 +237,10 @@ namespace GitHub.Runner.Listener
File.SetAttributes(configFile, File.GetAttributes(configFile) | FileAttributes.Hidden);
Trace.Info($"Saved {configContent.Length} bytes to '{configFile}'.");
}
// make sure we have the right user agent data added from the jitconfig
HostContext.LoadDefaultUserAgents();
VssUtil.InitializeVssClientSettings(HostContext.UserAgents, HostContext.WebProxy);
}
catch (Exception ex)
{