githubexporter / github-exporter

:octocat: Prometheus exporter for github metrics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest tag seems borked with authentication

gionn opened this issue · comments

With latest:

time="2021-08-03T15:05:59Z" level=info msg="Fetching https://api.github.com/orgs/repos?per_page=100 \n"
time="2021-08-03T15:06:00Z" level=error msg="Error scraping API, Error: Error: Received 404 status from Github API, ensure the repsository URL is correct. If it's a privare repository, also check the oauth token is correct"
time="2021-08-03T15:06:18Z" level=info msg="Fetching https://api.github.com/orgs/repos?per_page=100 \n"
time="2021-08-03T15:06:18Z" level=error msg="Error scraping API, Error: Error: Received 404 status from Github API, ensure the repsository URL is correct. If it's a privare repository, also check the oauth token is correct"

instead with 2.0.5-alpha is working fine.

I've set both ORGS and GITHUB_TOKEN

Same problem here, alpha works fine but this latest gives this same error.

It rather seems to be a bug when assembling the URLs. https://api.github.com/orgs/repos?per_page=100 is invalid, it should be https://api.github.com/orgs/ORGNAME/repos?per_page=100

Also see #75