You can grant a trust level when a user is added to a group.
And you can add users to a group based on badges (or user fields) with the automation plugin (or with Discourse Dynamic Groups).
With a custom badge that is granted for linking a GitHub or LinkedIn account, this could work without a custom plugin.