You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is gpg-argument '--pinentry-mode loopback' still necessary? #271
Description:
The documentation of the setup-java action states that for the maven-gpg-plugin the gpgArguments should be configured to be --pinentry-mode loopback in order to "to pick up the gpg.passphrase value defined in Maven settings.xml." and consequently avoid failures of the signing process (this was added with PR #122).
But I just set up a Maven build that includes GPG signing and succeeds even tough the --pinentry-mode loopback arguments in the maven-gpg-plugin are not set.
Therefore I wonder if these arguments are still necessary? Maybe due to updates to GPG or the version used in the GH runners or maybe there is some magic environment configuration in the GH runners themself? I'm neither very familiar with GPG nor with the GitHub Action runners, so I cannot tell.
I just noticed that it worked for me even for several builds without that configuration. Or have I just been lucky and could get the errors mentioned in the document in some day?
If you not set a --pinentry-mode it will use the default of the agent. Since GnuPG 2.1.12 release, the default mode is –allow-loopback-pinentry, so that is the reason why it`s work even if you not specify that argument.
For now I will close that issue, but if you have any additional questions - feel free to ask here or open a separated issue.
Activity
dmitry-shibanov commentedon Jan 10, 2022
Hello @HannesWell. Thank you for your report. We'll investigate the issue.
GreatDealsForU commentedon Mar 10, 2022
e-korolevskii commentedon May 26, 2022
Hello everyone, sorry for that it takes so long.
If you not set a
--pinentry-modeit will use the default of the agent. Since GnuPG 2.1.12 release, the default mode is–allow-loopback-pinentry, so that is the reason why it`s work even if you not specify that argument.For now I will close that issue, but if you have any additional questions - feel free to ask here or open a separated issue.