-
Notifications
You must be signed in to change notification settings - Fork 528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug][GitHub] GitHub PAT not working with private GitHub organization #8190
Comments
Hey there, @GiesN! I'm here to help you with any bugs, questions, or contributions you have for the Apache DevLake project. Let's tackle this GitHub PAT issue together. To resolve the issue with the GitHub PAT not working with your private GitHub organization in Apache DevLake, ensure that the PAT has the following permissions:
These permissions are necessary for accessing private repositories. Additionally, if you are using fine-grained personal access tokens, make sure the token is granted read-only permission for entities such as If the permissions are correctly set and the issue persists, check if there are any specific error messages or logs that could provide more details on the problem. Starting from version 0.18.0, DevLake provides an auto-check for the permissions of your token(s), which might help identify any missing permissions [3]. |
@dosu The permissions for the PAT are set correctly. It must be another issue. Could it be that the organization is a private one? |
If the permissions for the PAT are set correctly and you're still encountering issues, it could be related to the organization being private. Ensure that the PAT is authorized for SSO if your organization enforces SAML SSO. Without proper SSO authorization, the token might not work even if it has the correct permissions. Additionally, check for any specific error messages or logs that might provide more insight into the issue. If the repositories keep loading or you encounter a 403 error, it might indicate insufficient permissions or SSO-related issues [1]. |
@dosu SSO is also configured right. Is there something else which can lead to this error message by mistake? |
If the permissions and SSO are configured correctly, and you're still facing issues, consider the following possibilities:
If none of these resolve the issue, it might be helpful to look for any recent changes in your GitHub organization or DevLake setup that could have affected the connection. |
Search before asking
What happened
Hello everyone,
we want to use Apache DevLake for our private company GitHub organization.
We created a PAT with the permissions mentioned in the documentation and added SSO to the organization for this token.
The token is still throwing an error and saying it need a certain set of permissions which the PAT has.
What do you expect to happen
The PAT should work, because he has the right permissions and we should be able to connect to our GitHub org.
How to reproduce
Not possible
Anything else
No response
Version
v1.0.2-beta3@7cf1a60
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: