Skip to content

Commit db1a2c1

Browse files
Update dependencies from https://github.com/dotnet/arcade build 20260811.3
On relative base path root Microsoft.DotNet.Arcade.Sdk From Version 10.0.0-beta.26406.9 -> To Version 10.0.0-beta.26411.3
1 parent 9d0f04b commit db1a2c1

3 files changed

Lines changed: 17 additions & 7 deletions

File tree

eng/Version.Details.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
</Dependency>
3737
</ProductDependencies>
3838
<ToolsetDependencies>
39-
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.26410.1">
39+
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="10.0.0-beta.26411.3">
4040
<Uri>https://github.com/dotnet/arcade</Uri>
41-
<Sha>f0580c1beaa25ecdb341ad8396df48acf433fbec</Sha>
41+
<Sha>6a3a6bdbe2195bb7420b24a3d76e1fd66d7bbc35</Sha>
4242
<SourceBuild RepoName="arcade" ManagedOnly="true" />
4343
</Dependency>
4444
</ToolsetDependencies>

eng/common/Get-GitHubAppToken.ps1

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ try {
113113
$installations = @()
114114
$page = 1
115115
do {
116-
$pageInstallations = @(Invoke-RestMethod `
116+
# Assign the response before wrapping it in @(). PowerShell otherwise
117+
# preserves a top-level JSON array as one nested pipeline object.
118+
$pageResponse = Invoke-RestMethod `
117119
-Uri "https://api.github.com/app/installations?per_page=100&page=$page" `
118120
-Headers $headers `
119-
-Method Get)
121+
-Method Get
122+
$pageInstallations = @($pageResponse)
120123
$installations += $pageInstallations
121124
$page++
122125
} while ($pageInstallations.Count -eq 100)
@@ -125,12 +128,19 @@ catch {
125128
Write-PipelineTelemetryError -Category 'Build' -Message "Failed to list GitHub App installations: $_. The signed JWT may be invalid or the App's Client ID ('$AppClientId') may be incorrect."
126129
exit 1
127130
}
128-
$installation = $installations | Where-Object { $_.account.login -ieq $InstallationOwner } | Select-Object -First 1
129-
if (-not $installation) {
131+
$matchingInstallations = @($installations | Where-Object { $_.account.login -ieq $InstallationOwner })
132+
if ($matchingInstallations.Count -eq 0) {
130133
$found = ($installations | ForEach-Object { $_.account.login }) -join ', '
131134
Write-PipelineTelemetryError -Category 'Build' -Message "No installation found for '$InstallationOwner'. App is installed on: $found"
132135
exit 1
133136
}
137+
if ($matchingInstallations.Count -ne 1) {
138+
$matchingIds = ($matchingInstallations | ForEach-Object { $_.id }) -join ', '
139+
Write-PipelineTelemetryError -Category 'Build' -Message "Found multiple installations for '$InstallationOwner': $matchingIds"
140+
exit 1
141+
}
142+
$installation = $matchingInstallations[0]
143+
Write-Host "Using installation $($installation.id) for '$($installation.account.login)'."
134144

135145
try {
136146
$tokenResponse = Invoke-RestMethod `

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"msbuild-sdks": {
1111
"Microsoft.Build.NoTargets": "3.7.0",
12-
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26410.1",
12+
"Microsoft.DotNet.Arcade.Sdk": "10.0.0-beta.26411.3",
1313
"Microsoft.VisualStudio.Internal.MicroBuild.Vsman": "2.0.174"
1414
}
1515
}

0 commit comments

Comments
 (0)