Created
December 7, 2022 19:11
-
-
Save ricardolsmendes/dd4df817cce582fd59c5b533acf88039 to your computer and use it in GitHub Desktop.
Helpful shell commands to store a private key into an environment variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the private key from a JSON file using `jq` | |
# and store it into the `PRIVATE_KEY` environment variable: | |
export PRIVATE_KEY=$(jq -r '.private_key' service-account.json) | |
# Print a suitable value for GitHub secrets: | |
echo $PRIVATE_KEY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment