Minecraft wiki entry for Piglin, associated text: Is not wearing any piece of gold armor.
Short range, light aggravation
Attacks a piglin or piglin brute, regardless if the player kills it in one hit or not.
Long range, heavy aggravation to damaged piglin, medium aggravation to other piglins
Opens or breaks a chest, trapped chest, ender chest,[3] shulker box,[4] barrel, minecart with chest, minecart with hopper[5], or boat with chest.
Opening is short range, medium aggravation
Breaking is mid range, medium aggravation
Breaks a block of gold, gold ore, gilded blackstone, nether gold ore, block of raw gold or deepslate gold ore.
Mid range, medium aggravation