Skip to content

docs: Improved verbosity in GPG secrets configuration #3464

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

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

brosssh
Copy link
Member

@brosssh brosssh commented Jun 4, 2025

No description provided.

README.md Outdated
Comment on lines 84 to 87
5. Add the following GitHub secrets
1. [GPG_PRIVATE_KEY](.github/workflows/release.yml#L52): this is the [armored version of your GPG key](https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites) (`gpg --armor --export-secret-key [email protected]`)
2. [GPG_PASSPHRASE](.github/workflows/release.yml#L53): this is the passphrase you choosed while creating your GPG key
3. [GPG_FINGERPRINT](.github/workflows/release.yml#L54) (optional): this is the fingerprint of the GPG subkey (`gpg --list-secret-keys --keyid-format LONG --with-subkey-fingerprint [email protected]`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. Add the following GitHub secrets
1. [GPG_PRIVATE_KEY](.github/workflows/release.yml#L52): this is the [armored version of your GPG key](https://github.com/crazy-max/ghaction-import-gpg?tab=readme-ov-file#prerequisites) (`gpg --armor --export-secret-key [email protected]`)
2. [GPG_PASSPHRASE](.github/workflows/release.yml#L53): this is the passphrase you choosed while creating your GPG key
3. [GPG_FINGERPRINT](.github/workflows/release.yml#L54) (optional): this is the fingerprint of the GPG subkey (`gpg --list-secret-keys --keyid-format LONG --with-subkey-fingerprint [email protected]`)
5. Add the following GitHub secrets according to the requirements of the action [ghaction-import-gpg]([https://github.com/crazy-max/ghaction-import-gpg](https://github.com/crazy-max/ghaction-import-gpg):
1. [GPG_PRIVATE_KEY](.github/workflows/release.yml#L52)
2. [GPG_PASSPHRASE](.github/workflows/release.yml#L53)
3. [GPG_FINGERPRINT](.github/workflows/release.yml#L54)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I like more adding the commands directly, rather than linking a resource that don't even contain all the required info (or it does but not explicitly).

Copy link
Member

@oSumAtrIX oSumAtrIX Jun 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A reference avoids a copy of already existing mutable information in its full fledged and always up to date and contextual form.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The linked document is only helpful for setting up GPG_PRIVATE_KEY, it doesn't contain anything related to GPG_FINGERPRINT (unless I'm not seeing something). The fingerprint is actually not a secret there, which could introduce confusion.
image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, GPG_FINGERPRINT should be a variable (since there is no need to hide it), not a secret. This should be clarified
image

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the fingerprint should be a variable. The template and our repo should be adjusted for that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this repo the workflow already expects a variable, it's just not explained anywhere in the correct doc.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the suggested change in the PR then. Because right now it lists the fingerprint under "Add the following GitHub secrets"

@brosssh brosssh requested a review from oSumAtrIX July 14, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants