Coder Social home page Coder Social logo

Comments (5)

ccamacho avatar ccamacho commented on July 2, 2024

Hi @rlejeune, unfortunately, you can't right now 'by default', the problem is we are using a CORS proxy to actually do the call to the GitHub endpoints but the CORS proxy is not authenticated against GitHub so it will always fail.
Ideally, the perfect solution should be to get rid of the CORS proxy and use an access token to make the requests.

  • To get rid of the CORS proxy maybe a browser extension will help to remove the browser restrictions. Something to try might be to set cors proxy to '' in https://github.com/pystol/badgeboard/blob/master/assets/data_source/badges_list.js#L19
    and try with the extension.

  • Introduce the access_token in the requests.
    This might be achieved by setting the token with something like this
    url: i['uri']+"&access_token="+getAccessToken(),

Or adding the header with the Authorization parameter like:

$.ajax({
headers: {'Authorization': 'token '+ getAccessToken()},
url: i['uri'],

From:
https://github.com/pystol/badgeboard/blob/master/index.html#L229

WDYT?

from badgeboard.

rlejeune avatar rlejeune commented on July 2, 2024

Hi @ccamacho, thank you for your reply and for your work. This dashboard would certainly be better than my markdown sheet with all the badges ;)

I'll give it a try and let you know if I can make it works!

Have a great day

from badgeboard.

ccamacho avatar ccamacho commented on July 2, 2024

@rlejeune I quickly tried but didn't work like with an easy workaround, I opened this https://github.community/t/getting-the-status-of-a-badge-from-a-private-repository/116119 so just after getting the correct syntax it would be fairly easy to have it in the code.

Thanks for the feedback!

from badgeboard.

ccamacho avatar ccamacho commented on July 2, 2024

@rlejeune mehh not gonna happen at least now. Ill leave this open and once we have an answer Ill ping you again :)

From1:
Unfortunately private badge statuses are not exposed with our current URL structure. Sorry about that!

We are working to update the documentation to reflect the limitations of accessing a private badge status from outside the repository:

https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#adding-a-workflow-status-badge-to-your-repository

We really appreciate feedback on how we can make GitHub even better and the best way to report any feature requests is directly to us through our feedback form: https://support.github.com/contact/feedback

Our roadmap is not publicly visible, so we recommend that you keep an eye on the GitHub Blog for the latest announcements about new features.

from badgeboard.

rlejeune avatar rlejeune commented on July 2, 2024

Thank you for the follow up, lets hope that one day we will be able to something to have a nice dashboard of all our actions.

Have a great day!

from badgeboard.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.