The best way to assign one MAC address to a switch port when implementing port security is:
The best way is to statically set that MAC address.
Statically assigning the MAC address ensures that the switch port only allows traffic from that specific MAC address, providing a higher level of security and control over which devices can connect to the network through that port.