File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ public class DependabotProxy : IDisposable
5252
5353 if ( ! string . IsNullOrWhiteSpace ( cert ) )
5454 {
55- logger . LogInfo ( "No certificate configured for Dependabot proxy." ) ;
56-
5755 var certDirPath = new DirectoryInfo ( Path . Join ( tempWorkingDirectory . DirInfo . FullName , ".dependabot-proxy" ) ) ;
5856 Directory . CreateDirectory ( certDirPath . FullName ) ;
5957
Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ private ProcessStartInfo MakeDotnetStartInfo(string args, string? workingDirecto
4646 {
4747 logger . LogInfo ( $ "Setting up Dependabot proxy at { this . proxy . Address } ") ;
4848
49- startInfo . EnvironmentVariables . Add ( "HTTP_PROXY" , this . proxy . Address ) ;
50- startInfo . EnvironmentVariables . Add ( "HTTPS_PROXY" , this . proxy . Address ) ;
51- startInfo . EnvironmentVariables . Add ( "SSL_CERT_FILE" , this . proxy . CertificatePath ) ;
49+ startInfo . EnvironmentVariables [ "HTTP_PROXY" ] = this . proxy . Address ;
50+ startInfo . EnvironmentVariables [ "HTTPS_PROXY" ] = this . proxy . Address ;
51+ startInfo . EnvironmentVariables [ "SSL_CERT_FILE" ] = this . proxy . CertificatePath ;
5252 }
5353
5454 return startInfo ;
You can’t perform that action at this time.
0 commit comments