I think the key word is moderation.

I know that I give my crew things that have onion in them along with turkey skin, ham, garlic, chocolate...

In small amounts and not all the time these things would hurt a dog.

Garlic actually helps to keep fleas off dogs. But again in small amounts.