buildkite / terraform-provider-buildkite

Terraform provider for Buildkite
https://registry.terraform.io/providers/buildkite/buildkite/latest
MIT License
56 stars 35 forks source link

Fix importing of gpg key used for release signing #518

Closed yob closed 7 months ago

yob commented 7 months ago

The gpg key is stored in as ASCII armord format with new lines escaped, like:

MjAxMjMxMmFkZWZnMjIK\nOTMwNDA0MDRlZWVmYQo=

We need echo to process the escaped newlines before piping it to gpg, so gpg sees:

MjAxMjMxMmFkZWZnMjIK
OTMwNDA0MDRlZWVmYQo=