diff --git a/content/actions/security-guides/using-secrets-in-github-actions.md b/content/actions/security-guides/using-secrets-in-github-actions.md index b7cad7c031..6838a8595c 100644 --- a/content/actions/security-guides/using-secrets-in-github-actions.md +++ b/content/actions/security-guides/using-secrets-in-github-actions.md @@ -402,10 +402,18 @@ You can use Base64 encoding to store small binary blobs as secrets. You can then 1. Use `base64` to encode your file into a Base64 string. For example: + On MacOS, you could run: + ```shell base64 -i cert.der -o cert.base64 ``` + On Linux, you could run: + + ```shell + base64 -w 0 cert.der > cert.base64 + ``` + 1. Create a secret that contains the Base64 string. For example: ```shell