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

update secret key export doc (macos) #284

Closed
wants to merge 1 commit into from
Closed

Conversation

pjfanning
Copy link

I've been using these instructions for over year but recently I have found that when I export the gpg private key on my Mac that GitHub CI publish tasks fail at the base64 decode stage.

Adding -w0 when exporting the key fixes this. The Linux instructions include the -w0 already.

@@ -235,7 +235,7 @@ Add the following secrets:

```
# macOS
gpg --armor --export-secret-keys $LONG_ID | base64 | pbcopy
gpg --armor --export-secret-keys $LONG_ID | base64 -w0 | pbcopy
Copy link
Member

Choose a reason for hiding this comment

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

Are you using GNU Coreutils? Quick Googling says macOS version of base64 doesn't support -w flag. I can confirm this locally on macOS as well.

Copy link
Author

Choose a reason for hiding this comment

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

Looks like I'm using coreutils.

$ which base64
/usr/local/opt/coreutils/libexec/gnubin/base64

@pjfanning pjfanning closed this Oct 26, 2023
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