diff --git a/UpdatePublishedVersions.ps1 b/UpdatePublishedVersions.ps1 index dd857a13e854..d843b8d0b534 100644 --- a/UpdatePublishedVersions.ps1 +++ b/UpdatePublishedVersions.ps1 @@ -65,6 +65,8 @@ function Update-GitHub-File( message "Getting the `"sha`" of the current contents of file '$owner/$repo/$path'" + [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 + $currentFile = Invoke-WebRequest $fileUrl -UseBasicParsing -Headers $headers $currentSha = (ConvertFrom-Json $currentFile.Content).sha