You want to fix interaction authorship with #forgejo for migrated repositories without enabling login via external providers?
Here's how to do this with plain PostgreSQL
https://code.vinyl-cache.org/vinyl-cache/code.vinyl-cache.org/src/branch/main/scripts/link_user
Enjoy the powers of #selfhosting