News for hackers. Stuff that matters.
Re:macOS gatekeeper and file quarantine bypass by setr on Monday April 26, 2021 @04:25PM (#26947607)
Probably the simplest thing then would be to alias brew install to something like spctl —master-disable; brew install $1; spctl —master-enable
Re:macOS gatekeeper and file quarantine bypass by Wowfunhappy on Monday April 26, 2021 @06:46PM (#26949279)
`spctl --master-disable` requires root permissions (sudo).

You could edit sudoers so the command doesn't require a password. But really, at that point I'd just leave Gatekeeper off.