Skip to content

Commit 401bd38

Browse files
authored
Merge pull request #1842 from mjcheetham/codeql-fix
GitAuthentication.cs: suppress CodeQL alert about cert validation
2 parents 722ed69 + 92723a2 commit 401bd38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GVFS/GVFS.Common/Git/GitAuthentication.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public void ConfigureHttpClientHandlerSslIfNeeded(ITracer tracer, HttpClientHand
233233
{
234234
if (this.GitSsl != null && !this.GitSsl.ShouldVerify)
235235
{
236-
httpClientHandler.ServerCertificateCustomValidationCallback =
236+
httpClientHandler.ServerCertificateCustomValidationCallback = // CodeQL [SM02184] TLS verification can be disabled by Git itself, so this is just mirroring a feature already exposed.
237237
(httpRequestMessage, c, cetChain, policyErrors) =>
238238
{
239239
return true;

0 commit comments

Comments
 (0)