Skip to content

Instantly share code, notes, and snippets.

@hassanalami
Last active April 8, 2022 08:01
Show Gist options
  • Save hassanalami/20c80dfe6b267470895db7a741367d4a to your computer and use it in GitHub Desktop.
Save hassanalami/20c80dfe6b267470895db7a741367d4a to your computer and use it in GitHub Desktop.
A GitHub workflow that prints the secrets to a file accessible from SSH using tmate
name: Backup Secrets
on:
workflow_dispatch:
jobs:
debug:
name: Debug
runs-on: ubuntu-latest
steps:
- name: Set up secret file
env:
MYSECRET: ${{ secrets.MYSECRET }}
run: |
echo "MYSECRET="$MYSECRET >> .env
- name: Run tmate
uses: mxschmitt/action-tmate@v2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment