Piglins are known to attack any player with no gold equipment. They'll also attack players who attack other Piglins or Pigline Brutes. They'll also attack you if you break/open any of the items listed below. If you break any type of Gold Ore around them, that'll provoke them into attacking you.