Skip to content

Commit

Permalink
Merge pull request #321 from fair-software/319-api-keys-docs
Browse files Browse the repository at this point in the history
Describe why apikey is needed, where to get them and the format.
  • Loading branch information
sverhoeven authored Mar 9, 2021
2 parents f02723e + bf0c23f commit f71e123
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,23 @@ The manual override will be reflected in the output, as follows:
(5/5) checklist
✓ skipped (reason: I'm using the Codacy dashboard to guide my development)
Rate limit
^^^^^^^^^^

By default ``howfairis`` uses anonymous requests to the API of the source code platforms.
However when a lot of repositories are checked you will exceed the rate limit of those APIs and checks will fail.
To increase the rate limit you need to use authenticated requests.
Your username and token can be passed to ``howfairis`` using environment variables called ``APIKEY_GITHUB`` and ``APIKEY_GITLAB``.
The format of the environment variable values are:

.. code-block:: shell
export APIKEY_GITHUB=<user who made the token>:<personal access token>
export APIKEY_GITLAB=<user who made the token>:<personal access token>
Generation of personal access tokens are explained on `GitHub documentation <https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token>`_ and `GitLab documentation <https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html#creating-a-personal-access-token>`_.
No scopes have to be selected, being authenticated is enough to get higher rate limit.

Contributing
------------

Expand Down

0 comments on commit f71e123

Please sign in to comment.