Gatekeeper is a macOS security feature that enables users to choose to disallow the launching of apps that aren’t code signed by developers known to Apple.
To configure Gatekeeper on macOS, go to Protect your Mac from malware.