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

Commit 96b316a

Browse files
authored
Merge pull request #16870 from dagood/update-deps-tls12
[release/1.0.0] Enable TLS 1.2 in UpdateDependencies.ps1
2 parents 723156a + 7376e88 commit 96b316a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

UpdateDependencies.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ param(
1919
# a semi-colon delimited list of GitHub users to notify on the PR
2020
[string]$GitHubPullRequestNotifications='')
2121

22+
# Enable TLS 1.2 for communication with GitHub.
23+
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12
24+
2225
$LatestVersion = Invoke-WebRequest $VersionFileUrl -UseBasicParsing
2326
$LatestVersion = $LatestVersion.ToString().Trim()
2427

0 commit comments

Comments
 (0)