Skip to content

Writing Github secret to a file #26973

Answered by jsoref
suvojit-0x55aa asked this question in Actions
Discussion options

You must be logged in to vote

Your env variable was named  SSH_KEY not SECRET_KEY :

- name: Save Credentials
  run: 'echo "$SSH_KEY" | base64 --decode > secret_file.json'
  shell: bash
  env:
    SSH_KEY: ${{secrets.SECRET_KEY}}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
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
2 participants