den Bock zum Gärtner machen

Etymology
lit. 'make the goat a gardener'. Compare 🇨🇬.

Verb

 * 1)  fox guarding the henhouse