'Why can't I connect my GitHub repo to Heroku?
We are unable to access this connected repository on GitHub The authorization key is not valid, or the account used to connect to GitHub doesn't have access to the repository. Try disconnecting the repository above and then reconnect. That is the error I got when trying to connect my private GitHub repo to Heroku.
I've tried doing everything like making it public, or making a new repository, but it just won't work.
I don't have any code to show, since this is a Heroku problem, not a problem with the code.
I don't know what to do.
Solution 1:[1]
I have just had and fixed this issue hopefully I can help. Are you setting up a new repository by any chance? What worked for me was to actually add some files the to the repository and push to GitHub, then Heroku was able to read from the repo then. Hope this helps.
Solution 2:[2]
As on date 15 April 2022, there is security issue reported on github.
In action of the same, Heroku will not be reconnecting to GitHub till uncertain duration.
Action over the incident is reported on Heroku.
Courtesy: stackoverflow and salceforce stack-exchange
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | ryantk |
Solution 2 |