Commit 643fee9
committed
fix(.github/workflows): manage the refresh PR through the REST API
gh pr list/create/edit go through GraphQL, whose queries resolve reviewer
and team fields that require the read:org scope. cdrci's token carries only
repo and workflow, so the calls succeed while no pull request exists and
fail once CODEOWNERS attaches a reviewer: the first refresh would open a PR
and every run after it would fail.
Observed on this branch: run 32058047624 created #28224, then 32058781222
and 32059086614 both failed on gh pr list with a read:org scope error. The
equivalent REST endpoints need only repo.1 parent c8f49c4 commit 643fee9
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
142 | 147 | | |
143 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
144 | 152 | | |
145 | 153 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
151 | 160 | | |
152 | 161 | | |
153 | 162 | | |
| |||
0 commit comments