Skip to content

Commit f6fdfb0

Browse files
fstagniskedwards88
andauthored
Disable line wrapping in base64 encoding (github#28743)
Co-authored-by: Sarah Edwards <skedwards88@github.com>
1 parent 9bef667 commit f6fdfb0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

content/actions/security-guides/using-secrets-in-github-actions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,18 @@ You can use Base64 encoding to store small binary blobs as secrets. You can then
402402
403403
1. Use `base64` to encode your file into a Base64 string. For example:
404404
405+
On MacOS, you could run:
406+
405407
```shell
406408
base64 -i cert.der -o cert.base64
407409
```
408410
411+
On Linux, you could run:
412+
413+
```shell
414+
base64 -w 0 cert.der > cert.base64
415+
```
416+
409417
1. Create a secret that contains the Base64 string. For example:
410418
411419
```shell

0 commit comments

Comments
 (0)