Getting the status of a badge from a private repository

Viewed 801

I’m trying to get the status of a badge in a private repository (the svg image), I’m doing this from an unauthenticated location and I’m receiving the expected 404 error message.

Does anyone know how should I add the access_token information to the GET method to actually be able to get its status?

Calling the badge from URL like:

https://github.com/xx/yy/workflows/zz/badge.svg?event=push&access_token=hhhh

Returns 404.

Also, setting the token in the request's header:

headers: {'Authorization': 'token hhhh', ... }

Returns 404.

Thanks!

0 Answers
Related