lib/github: introduces GithubCurl::get_and_parse to handle API error without aborting