They work for skunks and rabbits. They can't stand the smell.
Supposedly, you can use any type of pepper to repel the groundhogs. It can be Cheyenne pepper, chili pepper or red pepper. Just sprinkle a bit into the burrow holes and hide them with dirt.