Closed e-caste closed 3 years ago
Using curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token <PAT>" https://api.github.com/rate_limit returns
curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token <PAT>" https://api.github.com/rate_limit
{ "message": "Bad credentials", "documentation_url": "https://docs.github.com/rest" }
We need to fix the way we provide an authorization (currently using my PAT) to the APIs.
It turns out that making a PAT public was not such a good idea. GitHub, knowing that, automatically disabled it. We use a secret now 🤫
Using
curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token <PAT>" https://api.github.com/rate_limit
returnsWe need to fix the way we provide an authorization (currently using my PAT) to the APIs.