Skip to content

Instantly share code, notes, and snippets.

@adamelliotfields
Last active July 22, 2024 19:18
Show Gist options
  • Save adamelliotfields/66346fbc4ce862adf1cc80e09e4b29a5 to your computer and use it in GitHub Desktop.
Save adamelliotfields/66346fbc4ce862adf1cc80e09e4b29a5 to your computer and use it in GitHub Desktop.
Setting Secrets Privately with `read`

Setting Secrets Privately with read

Instead of entering export GH_TOKEN=your_token, you can use read to set the variable without exposing it in your history:

read -s GH_TOKEN && export GH_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment