GrahamCampbell / Laravel-GitHub

A GitHub API bridge for Laravel
https://gjcampbell.co.uk
MIT License
622 stars 120 forks source link

Private Repos #124

Closed InQbate closed 3 years ago

InQbate commented 3 years ago

Hi,

Cant find good documentation with regards to creating a connection to a private account. I have setup a GitHub App. Downloaded the PEM, and setup config:

        'private' => [
            'method'     => 'private',
            'appId'      => '90711',
            'keyPath'    => base_path('/config/github.private-key.pem'),

Calling an endpoint using GitHub::connection('private') always results in a Bad Credentials / Unauthorized. I have tried API 3 and 4.

Any idea how to get this working?

xscode-auto-reply[bot] commented 3 years ago

Thanks for getting in touch. I'll get to your issue soon! :rocket:

For urgent issues and priority support, please visit https://xscode.com/grahamcampbell/Laravel-GitHub.

GrahamCampbell commented 3 years ago

I'm not sure. It should work as documented. If you'd like to purchase some paid support, you can do so at the above link. Otherwise, I'm not sure there's much I can do for you, since the issue seems to be application specific.

pkeogan commented 3 years ago

same issue

rachid-aachich commented 1 year ago

same issue

themustafaomar commented 9 months ago

Still not working :(

Github::connection('private')->apps()->listRepositories('USER_ID');