WEEE-Open / sardina

Our developers' section stats, computed hic et nunc
3 stars 0 forks source link

Fix REST API credentials #30

Closed e-caste closed 3 years ago

e-caste commented 3 years ago

Using curl -H "Accept: application/vnd.github.v3+json" -H "Authorization: token <PAT>" https://api.github.com/rate_limit returns

{
  "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.

e-caste commented 3 years ago

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 🤫