Backport from 3.0 side: https readonly support for github.