Boris Johnson and Dominic Cummings have been warned against the "politicisation of the civil service".