No clue about LinkedIn as I don't use or like the platform, but mails aren't really hidden on GH. Most people display one on their profiles (or in their commits). I do the first, and recruiters still spam different addresses of mine as well. Why make this any easier?