Skip to content

Commit 684c80c

Browse files
committed
C#: Address review comments.
1 parent 86c6df5 commit 684c80c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

csharp/extractor/Semmle.Extraction.CSharp.DependencyFetching/NugetPackageRestorer.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,12 @@ private bool IsFeedReachable(string feed, int timeoutMilliSeconds, int tryCount,
606606
{
607607
if (chain is null || cert is null)
608608
{
609-
logger.LogWarning("Certificate validation trivially failed due to missing chain or certificate.");
609+
var msg = cert is null && chain is null
610+
? "certificate and chain"
611+
: chain is null
612+
? "chain"
613+
: "certificate";
614+
logger.LogWarning($"Dependabot proxy certificate validation failed due to missing {msg}");
610615
return false;
611616
}
612617
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;

0 commit comments

Comments
 (0)