The alert is shown only if there is a quarantine flag set on the app/executable. Homebrew doesn't add such flag.
Topic:
Code Signing
SubTopic:
General
Tags: