Skip to content
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

Using PGP keys in GitHub secrets with the nexus-publish-plugin #270

Closed
thunderbiscuit opened this issue Nov 30, 2022 · 0 comments
Closed
Assignees

Comments

@thunderbiscuit
Copy link
Collaborator

thunderbiscuit commented Nov 30, 2022

You run into problems if you paste an entire private key as it comes out in ascii-armor format on your command line. I think this is because the GitHub secrets is added as a string, and the spaces create multiple strings instead of one.

In the end, the way to make it work is to add the following in the secrets:

  1. The PGP key passphrase, no quotes
  2. The secret key as a single, long string, no quotes, formatted as per the docs
  3. The key ID (the last 8 characters of the key fingerprint), no quotes

A few useful threads:

  1. The example here
  2. The official docs
  3. This answer
  4. This thread
@thunderbiscuit thunderbiscuit self-assigned this Nov 30, 2022
@thunderbiscuit thunderbiscuit changed the title Using PGP keys in GitHub secrets Using PGP keys in GitHub secrets with the nexus-publish-plugin Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant