[CI] Set TLS12 (#5482)

This commit is contained in:
Aleksandr Chebotov
2022-05-04 16:30:11 +02:00
committed by GitHub
parent c4f55aa749
commit ba6c9512a3

View File

@@ -26,6 +26,7 @@ $headers = @{
Authorization = "Basic ${base64AuthInfo}"
}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
$NewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Headers $headers -ContentType "application/json"
Write-Host "Created release: $($NewRelease._links.web.href)"