That isn't how consent works, though.

Scraping emails is also against the GitHub terms of service.

If you don't know what jurisdiction the owner of the email address resides in, it may also be illegal.

So whether it is scraping emails off a website or finding yourself on a private island with beautiful people "made available" to you, "consent" requires more than just having access.