Skip to content

Cannot merge using "Rebase and fast-forward" when requiring signed commits #35175

@Mo0rBy

Description

@Mo0rBy

Description

I am trying to setup up a bunch of repos so that any committers must push signed commits to their feature branch before they are able to merge to main.

I have set the main branch to have branch protections that "Require signed commits" and I have created a PR with a signed commit.
The only merge strategy allowed on the repository is "Rebase and fast-forward", meaning that no extra commits are to be created when merged, just fast forward the main branch to the HEAD of the branch being merged (I like this strategy to keep a clean commit history).

I would expect that only the commits I have pushed would need to be signed and verified (which they are), but it looks like I may need to setup the Gitea signing key as well (even though no merge commit is to be created with this merge strategy).

I have tried using every Trust model setting and they all have the same result.

It is possible that I'm configuring something incorrectly as this is the 1st time I've tried to setup signed commits on any remote Git server, so I'm happy to try a few suggestions if anyone has any.

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Image Image Image

Git Version

2.47.2

Operating System

Amazon Linux

How are you running Gitea?

Running Gitea in an AWS EKS cluster installed using the Helm chart (v12.0.0)

Database

PostgreSQL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions