Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

acatcalledanarchy's avatar

That repository name is invalid.

I'm having difficulty adding a private GitHub repository once I've provisioned server from Digital Ocean. I've tried Refreshing my GitHub token but to no avail.

Would anyone in LaraCastLand have any ideas?

0 likes
8 replies
BrandonSurowiec's avatar

You should be able to add your SSH key to the server on Laravel Forge and then it should work.

acatcalledanarchy's avatar

Thanks for the response Niban, I've added my public key to both GitHub and Forge but I'm still getting the same error. I've tested my key with GitHub and I'm successfully authenticated. Scratchy head time...

acatcalledanarchy's avatar

I case anyone else has a similar issue - I needed to set the correct permissions in GitHub to allow 3rd party access.

1 like
notomato's avatar

For anyone else having this issue (as this is the only page in Google ranking for the term) - go to your organisation's settings page, click "Third Party Access" and disable restrictions.

6 likes
barnabas.kecskes's avatar

I don't think that globally removing all restrictions is the best option - works nonetheless, so did the same for now. Can somebody shed a light on how to work around the problem?

chords's avatar

Alternate solution for those coming back to a stale project: within Forge, go to your "My Account" page, "Source Control" tab, and refresh your Github token.

4 likes
pbgordon's avatar

this is a simple issue and its a shame that it is not well explained or accounted for..... It should not have to be this way. The error message does not bother helping what needs to be done. Refreshing bitbucket oauth token did nothing. .....

Please or to participate in this conversation.