Genarate GPG key
If you don't have an own GPG key, generate one with this command:
Note: Name and email address of GPG key should match your Git settings which you use to commit (user.name and user.email), otherwise Gitea won't show your commits "trusted". Additionally, the configured email address should be listed on your Gitea profile (your avatar -> Settings -> Account): https://gitea.e5tv.hu/user/settings/account, otherwise you won't be able to add the public key to Gitea.
After the key is generated, you will see a summary about the new key:
You can get this information about your keys with the this command:
Configure Git to use the key
Configure Git to use this key to sign your work:
Recommended: Configure Git to automatically sign your commits and tags:
If you don't configure the automatic signing, you have to manually request it for each commit/tag.
You can find further information about Git & GPG signing here: https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work.
Configure Gitea to recognize your GPG key
Retrieve your GPG public key with this command:
The output of the above command should be copied to your Gitea profile. Navigate to this page (your avatar -> Settings -> SSH / GPG keys): https://gitea.e5tv.hu/user/settings/keys. Click on Add Key next to Manage GPG Keys and paste your public key.
If a pull request contains only signed commits, it is possible to sign the merge commit with Gitea's key. Two factor authentication should be activated on your profile for this! You can activate it on this page (your avatar -> Settings -> Security): https://gitea.e5tv.hu/user/settings/security.