Skip to content

Commit a25b4dd

Browse files
authored
Fix issue getting files changed in PR during CI
1 parent 26ce798 commit a25b4dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/BuildPackagesTask/Microsoft.Azure.Build.Tasks/GetPullRequestFileChanges.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ function Invoke-SafeWebRequest{
4545
try
4646
{
4747
Write-Debug "Sending query to the server..."
48+
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
4849
$jsonResult = Invoke-WebRequest $Query -ErrorAction Stop
4950
}
5051
catch
@@ -120,4 +121,4 @@ PROCESS {
120121

121122
return $filesChanged
122123
}
123-
}
124+
}

0 commit comments

Comments
 (0)