Fix snapshot publishing
Closed this issue · 8 comments
Run echo $PGP_SECRET | base64 --decode | gpg --import
base64: invalid input
I exported a key and base64 encoded it, but apparently not in the format necessary to create something that works with that command. Does anybody remember the correct incantation?
It is indeed very confusing that the base64 decoding seems to fail.
Hmm, is PGP_SECRET bigger than 64KB (see here)? For my key,
$ gpg --export-secret-keys 0BC58F292D5F87E12AADD2BF1A89EC203635A13D | base64 | wc -c
results in ~12KB.
export PGP_SECRET=$(gpg --export-secret-keys 0BC58F292D5F87E12AADD2BF1A89EC203635A13D | base64)
echo $PGP_SECRET | base64 --decode | gpg --import
works fine for me.
Maybe using base64 -w 0
is needed to prevent the newlines in the output? Pasting multi-line text in the github secrets web interface might be the problem.
I think the -w 0
might be it. Updating the secret and trying again.
Sadly not fixed, will look into it later https://github.com/http4s/http4s-jdk-http-client/runs/421132877#step:6:25
I think #155 will fix that, but I don't know what lurks beyond that.