Homebrew Cask and Security
Yes, and also trust that having the sources in the open and others using it, you don't need to be the first person to catch a bad act. The traceability of who checks in what hopefully is a deterrent to casual maliciousness.

You of course are more secure to not automate installs of unsigned software from the internet.