yanyongyu / githubkit

The modern, all-batteries-included GitHub SDK for Python, including rest api, graphql, webhooks, like octokit!
MIT License
158 stars 21 forks source link

Unable to list installations #104

Closed filipvh closed 3 weeks ago

filipvh commented 1 month ago

It seems the documentation of GitHub says you need a JWT to be able to list app installations. See https://docs.github.com/en/rest/apps/apps?apiVersion=2022-11-28#list-installations-for-the-authenticated-app

You must use a [JWT](https://docs.github.com/apps/building-github-apps/authenticating-with-github-apps/#authenticating-as-a-github-app) to access this endpoint.

But it seems this library has flaged this endpoint not to be called with JWT but with basic auth /auth/_url.py

yanyongyu commented 1 month ago

From the link you provide, githubkit checks the api url. If the url matches one of APP_ROUTES, githubkit will use jwt to auth as the app it self.

Did you encounter any errors? if so, please provide some error logs and repreduce steps.

yanyongyu commented 3 weeks ago

If you encountered any errors, you can open a new issue with error logs.