dacharyc / prfocus-website

Website and documentation for the PR Focus macOS app
https://prfocus.app
5 stars 1 forks source link

Add verified permissions for access key types #8

Closed dacharyc closed 1 year ago

dacharyc commented 1 year ago

A beta tester reported problems using a fine-grained access token with PR Focus in Issue https://github.com/dacharyc/prfocus-website/issues/7

After consulting the GitHub documentation, I was able to verify the required permissions for the data that PR Focus needs to access. I have manually tested these permissions with multiple repositories. I will add testing and better handling for this in the PR Focus app code in the future, but for the moment, this details the required permissions for each type of token.

This GitHub article X-Accepted-GitHub-Permissions header for fine-grained permission actors has details for getting the required permissions for various endpoints.