From f6fdfb006181d94c59eeee3cd0917b2889324f89 Mon Sep 17 00:00:00 2001 From: fstagni Date: Tue, 3 Oct 2023 01:04:03 +0200 Subject: [PATCH] Disable line wrapping in base64 encoding (#28743) Co-authored-by: Sarah Edwards --- .../security-guides/using-secrets-in-github-actions.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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