-
Notifications
You must be signed in to change notification settings - Fork 125
Could not read PGP secret key #900
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
Comments
I had the same error. Here is what I did to fix it:
Also In my case, I had to read and set the
Then I could read the variables:
Keep the Happy Coding |
@shadmanadman How would it work for a non-kotlin (Java) project on GitHub Actions CI? I'm currently facing the same issue with this workflow: https://github.com/umccr/gatk-bwamem-jni/actions/runs/13646557017/job/38146442330 In my workflow definition, the GPG secret key are imported successfully from a third party GHA action, but this gradle-maven-publish-plugin does not seem to read the GPG ASCII (armor) key properly? |
@brainstorm Sorry. I did not test this using CI Actions. but maybe after loading your GPG keys, you place them in a temp variable and then assign them manually with |
That's precisely the mind-twisting bit: I do have that variable set in
But then, - name: Publish package
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALUSERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVENCENTRALPASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGINMEMORYKEYPASSWORD }} |
@brainstorm |
Yes, it's right here... unless I'm doing something wrong defining and/or using it?:
|
And fails the same way with that https://github.com/umccr/gatk-bwamem-jni/actions/runs/13666426147/job/38208540067 I'm following a very similar setup to this one from JetBrains: https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-publish-libraries.html |
I can reproduce it locally too:
Yields the same error message:
And yes, I tried the two options outlined by @gabrielittner to no avail, as well as numerous different formattings for that private key, no dice :/ |
I had the same error. In my case, the key id was not in the correct format. Long Key ID (16 characters) works. |
Hi, I decided to learn how to publish a compose multiplatform library, I followed the instructions shown on the template for it in the readme https://kmp.jetbrains.com/#templateGallery (the Multiplatform library) and I've encountered the following issue:
Execution failed for task ':keyhandler:signAndroidReleasePublication'.
or
Execution failed for task ':keyhandler:signDesktopPublication'.
depending on the formatting I put in for the "GPG_KEY_CONTENTS"
as for some of the things i changed up during the process of making the library (off the top of my head):
I also tried creating a new key and trying different configurations with the "GPG_KEY_CONTENTS" but with the same results
here's the repo if it helps pinpoint the issue: https://github.com/Loop312/compose-keyhandler
I also apologize if this is the wrong place to ask, we can continue somewhere else if it's not
The text was updated successfully, but these errors were encountered: