Git clone fails when running CI on private fork

@diervo posted a solution for this here Git clone fails when running CI on private fork (solution)