-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(git): add support for SSH-based commit signing #29550
Conversation
b9a65fe
to
8920021
Compare
I'm not sure what to do about the type error. 🤔 Any advice? |
Try refactoring the existing part first (separate PR, to be merged first). This is our preferred approach to such changes regardless of any type challenges |
I think the problem is caused by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to not use jest when and stick to current test dependencies
Okay, I noticed that |
afe918a
to
7b239f2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've refactored the tests to use jest-mock-extended
instead of jest-when
. Rewriting the tests also revealed a bug which I've fixed, too. If the CI checks pass, I think this PR is ready for a proper review.
7b239f2
to
16ab23d
Compare
39e4a01
to
2f115ad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
71da848
to
9ee2ebc
Compare
Thanks for the thorough and valuable feedback, @viceice! 🙇 I've addressed your remarks. WDYT? 🙂 |
Please don't force-push. Just merge main if required, should only be required on conflicts |
I didn't force-push to rebase onto the latest state of |
yes, please just push new changes. we squash merge PRs, so don't worry about git history |
Hi there, You are using Good luck, The Renovate team |
🎉 This issue has been resolved in version 38.46.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I believe this change is causing Renovate to not work with opengpg commit signing. I'm seeing this error using Renovate 38.46.0:
My configuration is just setting |
It's a bug indeed. 🙇 See #30999 (reply in thread) and #31005. |
Changes
I've added support for SSH-based commit signing.
Context
Closes #18197.
The implementation includes a workaround for a quirk in
ssh-keygen
which requires the public SSH key to exist for signing even when the private key is provided directly, which is technically not necessary (see #18197 (comment)).Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: