From 6d46172ae215fb801edc05c432421c6070ca67a3 Mon Sep 17 00:00:00 2001 From: dawei-wang Date: Wed, 4 Jan 2023 12:33:05 -0800 Subject: [PATCH 1/2] Add note to use bash shell on Windows Fix github/docs#21873 --- content/actions/security-guides/encrypted-secrets.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/content/actions/security-guides/encrypted-secrets.md b/content/actions/security-guides/encrypted-secrets.md index fe5355ee5560..6cf015a90ba1 100644 --- a/content/actions/security-guides/encrypted-secrets.md +++ b/content/actions/security-guides/encrypted-secrets.md @@ -420,3 +420,8 @@ You can use Base64 encoding to store small binary blobs as secrets. You can then run: | openssl x509 -in cert.der -inform DER -text -noout ``` +{% note %} + +**Note**: Using another shell might require different commands for decoding the secret to a file. On Windows runners, we recommend [using a bash shell](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell) with `shell: bash` to use the commands in the `run` step above. + +{% endnote %} From 3c93c1ea0c0c119f18f6d62640ef2bc6fb2080ab Mon Sep 17 00:00:00 2001 From: dawei-wang Date: Wed, 4 Jan 2023 12:53:25 -0800 Subject: [PATCH 2/2] Fix formatting --- content/actions/security-guides/encrypted-secrets.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/actions/security-guides/encrypted-secrets.md b/content/actions/security-guides/encrypted-secrets.md index 6cf015a90ba1..a0e18d1f87ff 100644 --- a/content/actions/security-guides/encrypted-secrets.md +++ b/content/actions/security-guides/encrypted-secrets.md @@ -420,6 +420,7 @@ You can use Base64 encoding to store small binary blobs as secrets. You can then run: | openssl x509 -in cert.der -inform DER -text -noout ``` + {% note %} **Note**: Using another shell might require different commands for decoding the secret to a file. On Windows runners, we recommend [using a bash shell](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsshell) with `shell: bash` to use the commands in the `run` step above.