Issue #3412415 by larowlan, fjgarlin, longwave, drumm, benjifisher: Make CI template compatible with private repositories (cherry picked from commit 411e0bba)