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

create GA for this #3

Open
eeholmes opened this issue Oct 26, 2022 · 1 comment
Open

create GA for this #3

eeholmes opened this issue Oct 26, 2022 · 1 comment

Comments

@eeholmes
Copy link
Member

Here is how to save the GD secret into GH secrets
https://stackoverflow.com/questions/70791640/how-to-set-gihub-secret-with-a-binary-file-for-github-workflow

@eeholmes
Copy link
Member Author

Use base64 to encode binary string to text and decode it back to binary. This is pretty standard trick.

First, encode at home:

echo "$MY_BINARY_SECRET" | base64 --wrap=0 > secret.b64

--wrap=0 to make the output text one long line; useful for echo below.

Upload text file secret.b64 as the secret to GitHub. Decode it using

echo -n "${{ secrets.MY_BINARY_SECRET }}" | base64 --decode > binary.file

Advice: first try decoding locally and compare with the original string. Must be the same.

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

No branches or pull requests

1 participant