Yeah, I think github automatically has the rel="me" attribute on all its links to other profiles.
This was supposed to be the standard on the internet in order to aid cross-account verification, but many big players refused to use it.
The verification happens when you save your Mastodon profile, so you have to add your account to the github profile before you save the profile with the link to github.