nitpick should be able to fetch styles from private Github repos with access tokens derived from Github Apps.
Current behavior
Currently only Personal Access Tokens (starting with ghp) work correctly. Server to Server Tokens (starting with ghs) don't work and lead to a 404 Not Found.
Currently the authentication method is a username only Basic Authentication. If a token Authorization header is used, as it is already for getting the default branch, then both Personal Access Tokens and Server to Server Tokens from Github Apps work.
Could be that also now other Access Tokens also work, but I haven't tried them.
Context
We want to use Nitpick in our CI and don't want to use Personal Access Tokens but Github App Access Tokens instead.
Expected behavior
nitpick should be able to fetch styles from private Github repos with access tokens derived from Github Apps.
Current behavior
Currently only Personal Access Tokens (starting with ghp) work correctly. Server to Server Tokens (starting with ghs) don't work and lead to a 404 Not Found.
Steps to reproduce
Possible Solution
Currently the authentication method is a username only Basic Authentication. If a token Authorization header is used, as it is already for getting the default branch, then both Personal Access Tokens and Server to Server Tokens from Github Apps work. Could be that also now other Access Tokens also work, but I haven't tried them.
Context
We want to use Nitpick in our CI and don't want to use Personal Access Tokens but Github App Access Tokens instead.
Your environment
nitpick
version used: 0.33.2