Closed
Description
Hi,
I have noticed the behaviour, that Gitea does not sign a CRUD_ACTIONS commit (in this case cherry pick from web UI).
The setting I used was CRUD_ACTIONS = pubkey
. According to the docs: "Only sign if the user has a public key". The user I tested with has a public key uploaded, but it is of type SSH and none of type GPG.
Affected line of code:
gitea/services/asymkey/sign.go
Line 269 in f74a136
We use Gitea Version: 1.23.8
I assume that it was forgotten to check SSH pubkeys as well. Or is that behaviour intentional?
Steps to reproduce:
- Gitea setting
CRUD_ACTIONS = pubkey
- Log into Gitea UI with user that has an SSH pubkey but no GPG pubkey
- Cherry pick a commit over the UI
Expected Result: The new commit is signed by Gitea.
Actual Result: The new commit is unsigned.