Rebased commits by the web interface aren't signed #11639
Replies: 36 comments 32 replies
-
|
This seemingly also applies to the "Merge with Rebase" feature too. |
Beta Was this translation helpful? Give feedback.
-
|
This actually causes a lot of conflicts each time after local rebase once you pull main that is contains «rewritten without a sign» commits by Github, and rebase it onto existing branch that contains those commits in signed form. Thus, making Github Rebase feature pretty unusable which is bad. |
Beta Was this translation helpful? Give feedback.
-
|
For what it's worth, this also seems to be an issue if you're using the API to rebase a PR which contains only signed commits. |
Beta Was this translation helpful? Give feedback.
-
|
any update on this? |
Beta Was this translation helpful? Give feedback.
-
|
Also seems to happen when you revert a PR, I am sure it used to work in the past |
Beta Was this translation helpful? Give feedback.
-
|
Is any fix existing for this? |
Beta Was this translation helpful? Give feedback.
-
|
Would love to see this fixed. It's pretty jarring to see a lot of |
Beta Was this translation helpful? Give feedback.
-
|
Still can observe the issue. Can you guys try to fix it? |
Beta Was this translation helpful? Give feedback.
-
|
I have also detected this issue. |
Beta Was this translation helpful? Give feedback.
-
|
Same. gpg --list-secret-keys --keyid-format=long
git config --global user.signingkey <your key>
git rebase --exec 'git commit --amend --no-edit -n -S' -i <SHA before the one to fix> |
Beta Was this translation helpful? Give feedback.
-
|
Hit this again today. Used the script above to fix. Any update? |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, still broken. Some updated? It's annoying to have to do it manually when using GitHub. |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, the pull request merge buttons no longer seem to sign my commits. It used to work a few months ago, and now it doesn't. I'm using an SSH Signing Key. |
Beta Was this translation helpful? Give feedback.
-
|
Any update on this? I just spotted the same issue. |
Beta Was this translation helpful? Give feedback.
-
|
@magneland 's command works well, but I really don't want to force-push everytime I have to rebase. Why would the commits be unverified if it's on Github's own page and pull request, AND the commits are already signed.. Can we get some update on this? |
Beta Was this translation helpful? Give feedback.
-
|
Maddening, open two years. Instead of doing simple updates in UI from a phone or tablet have to lug around my laptop and fire up full Git to be able to merge a stack of PRs. |
Beta Was this translation helpful? Give feedback.
-
|
@ebndev Is someone on the GitHub team responsible for this issue? Its nigh on two and a half years and frankly its an infosec security and provenance matter. |
Beta Was this translation helpful? Give feedback.
-
|
If you're merging a PR as bypass listee, this even ignores the "Require signed commits" protection rule without giving notice. |
Beta Was this translation helpful? Give feedback.
-
|
October 2024, this is still an issue. 2 years and almost 8 months... |
Beta Was this translation helpful? Give feedback.
-
|
Hey GitHub team! I just saw an announcement that Persistent commit signature verification now in public preview. Does it mean that this issue is going to be addressed? |
Beta Was this translation helpful? Give feedback.
-
|
Not even |
Beta Was this translation helpful? Give feedback.
-
|
My team has enabled required signed commits for our I find it very odd that github has no problem signing squash commits and merge commits with their own key, but doesn't support re-signing rebase commits into main. Having a rule in the github rebase logic to only allow resigning of verified commits sounds fairly trivial to do. This would allow us to start using the rebase-to-main flow again and still retain the requirement for signed commits in Alternatively github could avoid re-creating the commits, but instead allow for fast forward merge to main which would retain the PRs unchanged, already signed, commits to go into main. The situation as it stand reduces the quality of our main branch, since in my teams workflow we often want to retain the commits from the PR into main. Sadly we cannot do this today with signed commits requirement in main with this current limitation. We can retain history using merge commits, but this causes a noisy |
Beta Was this translation helpful? Give feedback.
-
|
any updates on this? |
Beta Was this translation helpful? Give feedback.
-
|
3+ years and not a single concrete update 😔 |
Beta Was this translation helpful? Give feedback.
-
|
this is very annoying, so much time and this is still an issue |
Beta Was this translation helpful? Give feedback.
-
|
I've taken to manually merging PRs from the command line. When doing a |
Beta Was this translation helpful? Give feedback.
-
|
Just chiming in here to say that we also expected the rebase button in the UI to resign with Github's key the way it does when you perform a squash merge. |
Beta Was this translation helpful? Give feedback.
-
|
It's coming up to 4 years since this was opened. 👍 |
Beta Was this translation helpful? Give feedback.
-
|
Bump, please! |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone have a good workaround in the meantime, while the underlying problem has not been resolved? I have a branch protection rule that forces the signing of commits – I now have to manually deactivate this every time a PR is created, merge the PR, and then reactivate it. Is it possible to create any exception in the branch protection rules for PRs? |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
First of all, I'm more than happy to rebase my branch on GitHub without switching, pulling and all the jazz. However, when I rebase my branch on the PR by clicking 'Update with rebase', my signed commits become unsigned, resulting in an 'Unverified' badge if the user is using the vigilant mode.
IIRC GitHub signs the commit that has been created on the website by GitHub's key, and I was wondering if we could do the same for rebasing too.
Beta Was this translation helpful? Give feedback.
All reactions