Commit 2190fc9
authored
fix: use GraphQL viewer query for authenticated user detection (#194)
REST endpoints users.getAuthenticated and apps.getAuthenticated both
fail for GitHub App installation tokens. The GraphQL viewer query
works for both PATs and App installation tokens, returning the
correct login (e.g., {app-slug}[bot] for Apps).
Bump to v2.9.2.1 parent 088fdb3 commit 2190fc9
5 files changed
Lines changed: 10 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
Loading
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4845 | 4845 | | |
4846 | 4846 | | |
4847 | 4847 | | |
4848 | | - | |
4849 | | - | |
| 4848 | + | |
| 4849 | + | |
4850 | 4850 | | |
4851 | | - | |
4852 | | - | |
4853 | | - | |
4854 | | - | |
4855 | | - | |
4856 | | - | |
4857 | | - | |
4858 | | - | |
4859 | | - | |
4860 | | - | |
| 4851 | + | |
| 4852 | + | |
4861 | 4853 | | |
4862 | 4854 | | |
4863 | 4855 | | |
| |||
0 commit comments