Least Required Permissions For Git Providers
GitHub
Fine-Grained Personal Access Token
For public repositories, it's sufficient to enable Public Repositories, without
any additional permissions.
For private repositories the following permissions are required:
Pull requestswith Read-Write access. This is required to check Pull Request changes, list comments, and create or update comments.Metadatawith Read-only access. This is automatically marked as "mandatory" because of the permissions listed above.