I’d be careful about the potential for serious doggy farts, but, if you’re okay with that, can’t hurt the dog. I had a cat that loved Cantaloupe once, he went insane whenever I cut one up and always had a bowl of minced Cantaloupe.
I also recall a bean related tragedy years ago when a bunch of us partying youngsters fed a friends dog our leftover bean burritos one night.
Nobody let Simon out and the next morning their WHITE carpet had about 20 piles of Rosarita refried beans all over it. Baaaad, so baaaad, crawling around with hangovers wiping up dog diarrhea. :-)