def get_headers(repository, config):
    """Get the HTTP headers for the GitHub api.

    This is required to post comments on GitHub on your behalf.
    Please update your configuration accordingly.

    .. code-block:: python

        ACCESS_TOKEN = "deadbeef..."

    It can also be overwritten per user.

    .. code-block:: console

        $ kwalitee account add username --token=deadbeef...

    :return: HTTP headers
    :rtype: dict

    """
    token = repository.owner.token or config['ACCESS_TOKEN']
    return {'Content-Type': 'application/json', 'Authorization':
        'token {token}'.format(token=token)}
