mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
C#: Address review comments.
This commit is contained in:
@@ -606,7 +606,12 @@ namespace Semmle.Extraction.CSharp.DependencyFetching
|
||||
{
|
||||
if (chain is null || cert is null)
|
||||
{
|
||||
logger.LogWarning("Certificate validation trivially failed due to missing chain or certificate.");
|
||||
var msg = cert is null && chain is null
|
||||
? "certificate and chain"
|
||||
: chain is null
|
||||
? "chain"
|
||||
: "certificate";
|
||||
logger.LogWarning($"Dependabot proxy certificate validation failed due to missing {msg}");
|
||||
return false;
|
||||
}
|
||||
chain.ChainPolicy.TrustMode = X509ChainTrustMode.CustomRootTrust;
|
||||
|
||||
Reference in New Issue
Block a user