Once the yarn covered everything, I secured the ends with my trusty glue gun. Hot glue and I have a love-hate relationship, but I use it all the time.
Spoiler: I used a lot of glue. Like, more than necessary. But I’ll take extra glue over an unraveling pumpkin any day!