Skip to content

How to create github action secrets #9377

Discussion options

You must be logged in to vote

To create the encrypted secret, you'll use the encryption method of your language of choice. I know it's supposed to be base64 encoded, so Python has the built-in base64 library for that part. It looks like GitHub recommends using LibSodium based on the information in their API docs. They've got an example putting those two libraries together to build the encoded secret in their docs.

Regarding getting the key, I'd probably use the getActionsPublicKey call. I'm pretty sure there's other ways to do it, but I'd stay in Pulumi to get it.

Let me know if this helped!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by katcosgrove
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants