Teamcity build status icon on github: No permission to get data

I try to represent Teamcity build status of project on its Github page. For this purpose I use TeamCity rest API that exposes status icon at URL


For now I have two Github projects and three TeamCity builds for them (separate builds for two branches).

For all three builds URL built by scheme mentioned above gives  me expected image. But Github website replaces original image paths from  my TeamCity by own paths from host. And for two from three builds instead of image I expect to see  (success or fail) I get image stating 'No permission to get data'. (It  doesn't depend on way I insert image into file: with markdown syntax or  inline HTML)

Both Github projects are private. TeamCity site requires login in general but status icons don't.

I've checked also that this situation doesn't depend on TeamCity service hook usage.

I'll be glad to hear any idea on subject.


It appear that Github is not related. Status widget was not enabled for builds in question and in such a case status icon image requires user to be logged in (not so expected behaviour from my point of view).

Enabling widget solves the problem



Thank you for the folow up posting.
There are other options in addition to status widget configuration.


Please sign in to leave a comment.