i dont know if anyone is still here that needs an answer, but i found a tool that gets both the github generated og image, and the user uploaded og image if there is one, here's the blog post: https://kai.bi/post/github-og-image, usage is https://github.html.zone/username/repo_name