You do not want to compost anything that you are suspicious about. White rot infected alliums will compost lovely, and when you spread that compost on your plot, you will infect vast areas! If worried about it, I would say bin your onion peelings.
EJ, a white rot sufferer :'(