C#: Propagate DependabotProxy instance down from DependencyManager

This commit is contained in:
Michael B. Gale
2024-12-02 14:18:24 +00:00
parent e999ec1ecf
commit 984091d4a4
5 changed files with 13 additions and 7 deletions

View File

@@ -16,10 +16,10 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
public string Exec { get; }
public DotNetCliInvoker(ILogger logger, string exec, TemporaryDirectory tempWorkingDirectory)
public DotNetCliInvoker(ILogger logger, string exec, DependabotProxy dependabotProxy)
{
this.logger = logger;
this.proxy = new DependabotProxy(logger, tempWorkingDirectory);
this.proxy = dependabotProxy;
this.Exec = exec;
logger.LogInfo($"Using .NET CLI executable: '{Exec}'");
}