-
-
Notifications
You must be signed in to change notification settings - Fork 81
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 github tags created by release command #1773
Comments
We are already using this, right? |
I meant that there is no API to create signed tags. The only way to do this is to use the regular signing mechanism, i.e., GPG, to sign the commits. |
I see. I wonder how release-please sings tags. https://github.com/googleapis/release-please/tags 🤔 |
I think they are using an external in-house-built service. At least, that is what the |
I see.
Can't this be done by the user before running the release-plz action?
what do you think? |
Motivations
The creation (and push) of Git tags is automated by the
release-plz release
command. The newly created tags are not signed, so they appear in the GitHub UI as "unverified":Proposed Solution
Currently, there's no GitHub API that supports signing git tags (see this GitHub discussion), despite a REST API exists to create signed/verified commits using the GitHub token.
To sign tags in the CI using git's
--sign
option, we could use an environment variable (e.g.,GPG_SIGNING_KEY
) to pass a GPG sub-key ID to therelease
command. This environment variable can be optional and keep the current behavior if not provided.Of course, this would require the GPG key to be imported in the action container's GPG keyring using, for instance, the Import GPG action.
The text was updated successfully, but these errors were encountered: