It is not a problem to share public keys, but make sure the private key cannot be found by third parties. Transactions can be sent to the public key, which is completely secure.
It is safe to share your Bitcoin address publicly. This way, it is possible to safely complete donations or payments. No cryptocurrencies can be stolen through a public address. The only way by which stealing crypto is possible is if someone has managed to get hold of the private keys.