openfun / arnold

:construction_worker_woman: Deploy your applications to Kubernetes with Ansible
MIT License
41 stars 8 forks source link

🛂(cli) use github token to avoid rate limiting #782

Open claudusd opened 1 year ago

claudusd commented 1 year ago

Purpose

If we execute a lot of Arnold command, this will reach the Github API rate limiting. When we reach the limit Arnold will fail because it can parse the Github response and stop with this error

jq: error (at <stdin>:1): Cannot index object with number

Proposal

Use the environment variable GITHUB_TOKEN to authenticate to the Github API and increase the API rate limiting.