GitLab CI supports creating badges for the latest build/coverage on a certain branches. However, with restricted access, where users do not have access to pipelines, users still have access to the build/coverage status of any branch.
This access works for different configurations:
test/cibadges
in these steps.Project Members Only
and disable Public builds
in the CI settingshttps://example.gitlab.com/test/cibadges/badges/master/pipeline.svg
This will return a SVG image showing the build status of the master
branch. This works for any other branch as well. The same thing also works with the coverage badge accessible via the following link https://example.gitlab.com/test/cibadges/badges/master/coverage.svg
The same works for the other configurations as mentioned above.
Even if repos and therefore also pipelines are completely disabled, the last build status/coverage still can be retrieved via the badges link.
Perform proper authorization check handling a badge request
Users with restricted pipeline access can see the build/coverage status for different branches