That would shut down all drive-by contributions, which may not be a good source of big improvements, but are a good source of information about bugs/maintenance issues. I.e. if I find a rare corner case where the code breaks, for an open source project I'd usually take some time to report it properly. But there's no way I'd pay for the privilege or bother to register with my governmental ID.
I agree, but if there were a common place where everyone did the registration once, it might be less of a problem. Something similar to the «verified» accounts on twitter etc.
I can imagine GitHub becoming this filter somehow