RubbaBoy / BYOB

Bring Your Own Badge - Create dynamic README badges based off of your GitHub Actions
MIT License
80 stars 10 forks source link

Running action does not actually create badge #11

Closed cetoh closed 1 year ago

cetoh commented 1 year ago

Hi. I've run this on my workflows and the url does not actually exist to display the badge.

cetoh commented 1 year ago

Example adding ![](https://byob.yarr.is/QSD-Software-Development/Unity-Next-TFS-POC/time) does not actually display anything on the readme.md. Navigating to the url also gives a 404 saying "No config found"

RubbaBoy commented 1 year ago

The user/organization name page (here) returns a 404, is that the exact spelling of it, and is it public?

cetoh commented 1 year ago

Oh the organization itself has to be public or just the repo?

RubbaBoy commented 1 year ago

The repository at the very least has to be public, it must be accessible from unauthenticated clients or else GitHub/BYOB won't be able to resolve the contents of the file. As a hacky workaround, you could make a separate public repository just for shields and have it push the shields branch there.

Unfortunately, there's not great support for private repositories, but if you or anyone else has suggestions on a good way to go about them I'm all ears.

cetoh commented 1 year ago

Good to know. Unfortunately we have some repos with SSO set up also so that might be the issue. I'll attempt this with a separate public repository for shields.

cetoh commented 1 year ago

The solution you provided works fine. Publishing shields on a public repo in a different account while the action runs in a private repo from a different account than the public worked fine. Thanks!