mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
[CI] Set TLS12 (#5482)
This commit is contained in:
committed by
GitHub
parent
c4f55aa749
commit
ba6c9512a3
@@ -26,6 +26,7 @@ $headers = @{
|
|||||||
Authorization = "Basic ${base64AuthInfo}"
|
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"
|
$NewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Headers $headers -ContentType "application/json"
|
||||||
|
|
||||||
Write-Host "Created release: $($NewRelease._links.web.href)"
|
Write-Host "Created release: $($NewRelease._links.web.href)"
|
||||||
Reference in New Issue
Block a user