Commit 2278c7f
authored
Fix OneLoc GitHub App installation selection (#14917)
OneLoc currently receives a token for the first GitHub App installation
(microsoft) instead of selecting the requested dotnet installation. That
causes 403 Resource not accessible by integration when localization
tries to create locfiles/* branches or update PRs.
This syncs the focused installation-selection fix already merged in
dotnet/arcade#17312 and propagated to dotnet/dotnet main. It flattens
the installations response before filtering, requires exactly one owner
match, and logs the selected installation.
Evidence:
- The App-token step succeeds, but OneLoc branch/PR writes fail with
403.
- Replaying the same operation with the correctly selected dotnet
installation token succeeds.
- The change is limited to �ng/common/Get-GitHubAppToken.ps1 (14
insertions, 4 deletions).
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/dotnet/winforms/pull/14917)1 parent af0c793 commit 2278c7f
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
117 | 119 | | |
118 | 120 | | |
119 | | - | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | | - | |
129 | | - | |
| 131 | + | |
| 132 | + | |
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
134 | 144 | | |
135 | 145 | | |
136 | 146 | | |
| |||
0 commit comments