We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: