Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 723156a

Browse files
authored
Use .Net lib for SecurityProtocol (#16717)
* Use .Net lib for SecurityProtocol * bor instead of bxor
1 parent 5321c70 commit 723156a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

UpdatePublishedVersions.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ function Update-GitHub-File(
6565

6666
message "Getting the `"sha`" of the current contents of file '$owner/$repo/$path'"
6767

68+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
69+
6870
$currentFile = Invoke-WebRequest $fileUrl -UseBasicParsing -Headers $headers
6971
$currentSha = (ConvertFrom-Json $currentFile.Content).sha
7072

0 commit comments

Comments
 (0)