mvisonneau / gitlab-ci-pipelines-exporter

Prometheus / OpenMetrics exporter for GitLab CI pipelines insights
Apache License 2.0
1.27k stars 240 forks source link

request to /api/v4/projects/ with header access_token returns [] #848

Open Marb0l opened 4 months ago

Marb0l commented 4 months ago

Hi,

I'm trying to implement the exporter but when i try the {} wildcard or the search i will have 0 projects available. I tried making a get request on the same path with the header access_token for authentication and got the same outcome.

Reading around i discovered that the correct header to use it's PRIVATE-TOKEN, after sending a request with the new header the endpoint correctly answered with a list of all the projects.

Is someone having the same problem ? have you found a work-around?