File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ internal class DependabotProxy
16
16
/// The full address of the Dependabot proxy, if available.
17
17
/// </summary>
18
18
internal readonly string ? Address ;
19
+ /// <summary>
20
+ /// The path to the temporary file where the certificate is stored.
21
+ /// </summary>
22
+ internal readonly string ? CertificatePath ;
19
23
20
24
/// <summary>
21
25
/// Gets a value indicating whether a Dependabot proxy is configured.
@@ -49,13 +53,13 @@ internal DependabotProxy(ILogger logger, TemporaryDirectory tempWorkingDirectory
49
53
var certDirPath = new DirectoryInfo ( Path . Join ( tempWorkingDirectory . DirInfo . FullName , ".dependabot-proxy" ) ) ;
50
54
Directory . CreateDirectory ( certDirPath . FullName ) ;
51
55
52
- var certFilePath = Path . Join ( certDirPath . FullName , "proxy.crt" ) ;
53
- this . certFile = new FileInfo ( certFilePath ) ;
56
+ this . CertificatePath = Path . Join ( certDirPath . FullName , "proxy.crt" ) ;
57
+ this . certFile = new FileInfo ( this . CertificatePath ) ;
54
58
55
59
using var writer = this . certFile . CreateText ( ) ;
56
60
writer . Write ( cert ) ;
57
61
58
- logger . LogInfo ( $ "Stored Dependabot proxy certificate at { certFilePath } ") ;
62
+ logger . LogInfo ( $ "Stored Dependabot proxy certificate at { this . CertificatePath } ") ;
59
63
}
60
64
61
65
internal void ApplyProxy ( ILogger logger , ProcessStartInfo startInfo )
You can’t perform that action at this time.
0 commit comments