swh-lister/swh/lister/github
Antoine R. Dumont (@ardumont) 92d494261f
lister: Make sure lister that requires github tokens can use it
Deploying the nixguix lister, I realized that even though the credentials configuration
is properly set for all listers, the listers actually requiring github origin
canonicalization do not have access to the github credentials. It's lost during the
constructor to only focus on the lister's credentials. Which currently translates to
listers being rate-limited.

This commit fixes it by pushing the self.github_session instantiation in the constructor
when the lister explicitely requires the github session. Hence lifting the rate limit
for maven, packagist, nixguix, and github listers.

Related to infra/sysadm-environment#4655
2022-10-26 17:23:40 +02:00
..
tests lister: Make sure lister that requires github tokens can use it 2022-10-26 17:23:40 +02:00
__init__.py Remove no longer used models field in dict returned by register 2021-02-02 16:33:52 +01:00
lister.py lister: Make sure lister that requires github tokens can use it 2022-10-26 17:23:40 +02:00
tasks.py Reimplement the GitHub lister using the new pattern class 2021-01-11 11:00:29 +01:00
utils.py Use swh.core.github.pytest_plugin in github tests 2022-05-20 16:06:11 +02:00