Yes, that is Harrison Ford stapling his fedora to his head. The hat kept falling off during filming when he was being dragged behind a vehicle and this was his solution so they could get the take.
My hat's off to you sir, because I'm not a big enough badass to staple it on.