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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error could come earlier for misconfigured GPG key that incorrectly possesses a passphrase #17

Open
rtyley opened this issue Dec 26, 2023 · 0 comments

Comments

@rtyley
Copy link
Member

rtyley commented Dec 26, 2023

If the user provides a GPG key that, against requirements, is not passphrase-less, the flow will fail on the 3rd job (馃敀 Push Release Commit) - but we could do a quick check in step 1 (馃敀 Read Signing Key Id) and give faster feedback.

Sample failed workflow run that shows an error that could have come sooner

https://github.com/rtyley/sample-project-using-gha-scala-library-release-workflow/actions/runs/7328509323/job/19956907992

image
error: gpg failed to sign the data:
[GNUPG:] KEY_CONSIDERED 838880CDFC6A969658E402D6E93376570A5421BF 2
[GNUPG:] BEGIN_SIGNING H8
[GNUPG:] PINENTRY_LAUNCHED 1812 curses 1.1.1 - - - - 1001/127 -
gpg: signing failed: Inappropriate ioctl for device
[GNUPG:] FAILURE sign 839189[50](https://github.com/rtyley/sample-project-using-gha-scala-library-release-workflow/actions/runs/7328509323/job/19956907992#step:5:51)
gpg: signing failed: Inappropriate ioctl for device

error: failed to write commit object
fatal: cherry-pick failed
Error: Process completed with exit code 128.
image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant