You can test whether your API token is being rate limited by Github by running the following command where $GITHUB_TOKEN
is either an environment variable with your token or you can replace this with your token.
curl -i -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user
You should receive a response similar to:
x-ratelimit-limit: 5000 x-ratelimit-remaining: 4999 x-ratelimit-reset: 1617899264 x-ratelimit-used: 1
This is also a useful way to verify the permissions associated for your token when troubleshooting import or permissions problems with your token, by viewing the following output:
x-oauth-scopes: admin:enterprise, admin:gpg_key, admin:org, admin:org_hook, admin:public_key, admin:repo_hook, delete:packages, delete_repo, gist, notifications, repo, user, workflow, write:discussion, write:packages