githubgitlabgitlab-cigitlab-omnibusgitlab-api

Can Gitlab expose build and coverage badges to anonymous users?


We are hosting some repository on GitHub, some other on GitLab.

Sometimes, the package is published but not the source code.

We always display build status and code coverage in README.md.

Is there a way to have build and coverage badge on GitLab always accessible to anonymous?


Solution

  • Since release 11.4.8 of Gitlab it's not possible to expose project's Badges through a Personnal Access Token anymore. Because of the change " Restrict Personal Access Tokens to API scope on web requests."

    The commit that removed this "workaround" was published as a security fix

    An ongoing issue is currently being discussed to find another solution. Let's see how it goes.