I repaired the targa panel locking mechanism when I first bought the car over 23 years ago. The pin had pulled out of the sprung tab that locks the panel. Previous people had tried to weld it. My solution was to bend the rod slightly and then epoxy resin the rod in place. The kink in the rod gives you something for the epoxy to grip on, so the rod doesn’t just pull out. I avoided rapid epoxy as I always do.