does anyone know how to attach a rig to an entity

Hi so I’m trying to attach a animated Java rig to a entity like an iron golem but I don’t know how to and get it rotated with the said iron golem can you guys help

Continue to help post