Skip to content

Document base64 secret decoding warts on windows powershell #21873

@robinp

Description

@robinp

Code of Conduct

What article on docs.github.com is affected?

https://github.com/github/docs/blob/main/content/actions/security-guides/encrypted-secrets.md

What part(s) of the article would you like to see updated?

At the very end of that doc, a linux/bash example is shown on how to base64-decode a secret.

But trying to use that as-is on powershell utterly fails for 2 reasons (probably newlines, and default UTF-16 output).
I wrote those points up in https://stackoverflow.com/a/74344321/180258 for reference.

I would suggest at minimum to call attention to the issues, but even more: either give a specific working powershell example, or just suggest that bash should be used to decode base64 to binary under windows.

Hope will save some hours for other people too.

Thank you!

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    actionsThis issue or pull request should be reviewed by the docs actions teamcontentThis issue or pull request belongs to the Docs Content teamhelp wantedAnyone is welcome to open a pull request to fix this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions