Closed mijicd closed 2 years ago
Update: I suspected that the expired key was causing this issue, so I created a new one and updated the environment variables accordingly. Unfortunately, the problem is still present.
Getting the same error
Not sure what the root cause is but the key observation is that the log says:
[info] gpg: no default secret key: No secret key
[info] gpg: signing failed: No secret key
Also is the key registered to https://keyserver.ubuntu.com/?
Also is the key registered to https://keyserver.ubuntu.com/?
That's the odd part, both the old key, and the one I replaced it with are registered.
I just published sbt-pgp 2.2.0-M2 using sbt-ci-release 1.5.10 as a test - https://github.com/sbt/sbt-pgp/runs/4993903219 There was a hick-up of sbt-sonatype not picking up the staging repo status after it was released, but the GPG signing part worked fine for me:
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.jar
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-javadoc.jar
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.jar.asc
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-javadoc.jar.asc
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.pom.asc
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-sources.jar
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2-sources.jar.asc
[info] published sbt-pgp to /home/runner/work/sbt-pgp/sbt-pgp/target/sonatype-staging/2.2.0-M2/com/github/sbt/sbt-pgp_2.12_1.0/2.2.0-M2/sbt-pgp-2.2.0-M2.pom
afaict the same version of gpg:
Running ci-release.
branch=refs/tags/v2.2.0-M2
gpg (GnuPG) 2.2.19
After your message, I decided to restart the process using the second key, and it turns out I made a mistake when setting the PGP_SECRET value. Once I fixed that, we got a successful build!
Thank you very much for checking out, and sorry for the disturbance!
I recently noticed a few of our builds failing with the following GPG error:
You can find the complete failure log in the following builds:
We're running the sbt-ci-release 1.5.10 and GPG 2.2.19. I can confirm that we didn't change the keys since our last successful build and that they're still valid.
While trying to mitigate the issue, I found this article by @eed3si9n and tried the approach with a helper script, but later on, I realized it's already a part of the plugin and doesn't fix the problem.
I'd appreciate it if you could give me some advice on how to solve the problem :pray: .