Github will not allow you to use your personal corner of the platform to propagate malware, and hasn't allowed it for many years.
I'm disappointed to see this kind of comparison made.
A build will often reach out, download and install new and potentially breaking software components and it is part of its function to prevent breaking software components from reaching the application where it could cause material harm.