Commit a019c60
fix(code): request delete_repo scope so the provider can delete repos
GitHub's `repo` OAuth scope grants full control of private repositories but
specifically excludes deletion, which requires the separate `delete_repo`
scope. Tokens minted with the old default set could create repositories but
every DELETE returned `403 Must have admin rights to Repository`, leaving
Repository CRs stuck on their finalizer.
Add `delete_repo` to the default scope set in the OAuth handler, the Helm
values doc, and the README PAT/env guidance. Existing connections must
re-authorize (OAuth) or swap to a `delete_repo`-capable PAT to pick up the
broader scope.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 99629a7 commit a019c60
3 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
309 | | - | |
| 310 | + | |
310 | 311 | | |
311 | 312 | | |
312 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
| 70 | + | |
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
0 commit comments