Skip to content
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

sign tags #2174

Open
extrawurst opened this issue Apr 9, 2024 · 1 comment
Open

sign tags #2174

extrawurst opened this issue Apr 9, 2024 · 1 comment

Comments

@extrawurst
Copy link
Owner

extrawurst commented Apr 9, 2024

currently signing does not apply to tags.

If you have a GPG private key set up, you can now use it to sign new tags. All you have to do is use -s instead of -a:

$ git tag -s v1.5 -m 'my signed 1.5 tag'

You need a passphrase to unlock the secret key for
user: "Ben Straub <ben@straub.cc>"
2048-bit RSA key, ID 800430EB, created 2014-05-04

see https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work

It looks like signing just appends a signature to the annotated tag. we just need to figure out what exactly is expected to be in the buffer that we need to sign.

more links:

@hendrikmaus
Copy link
Contributor

Another thread I opened to gather more info: rust-lang/git2-rs#1039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants