GitHub Actions - gpg: Sorry, no terminal at all requested - can't get input

148 Views Asked by At

Objective - I am currently trying to automate the deployment of a Java package to Maven Central through GitHub Actions. As publishing requires to sign artifacts I added maven-gpg-plugin to pom.xml. So far, so good.

Situation - When the plugin got loaded, it fails on execution and then prompting this:

gpg: Sorry, no terminal at all requested - can't get input

A solution suggested by this another post on the same topic is to remove the --no-tty option set by default in the gpg.conf file.

Problem - Here is the thing. It doesn't appear we can alter this file using the actions/setup-java@v3 from GitHub Actions which yet exposes the possibility to provide GPG private key and passphrase.

Here is the GitHub actions deployment workflow file and here the associated pom.xml. Am I missing something?

0

There are 0 best solutions below