Skip to content

Commit

Permalink
Merge pull request #33 from lim-deriv/gh_actions/fix_risky_contexts
Browse files Browse the repository at this point in the history
gh_actions/fix_risky_contexts
  • Loading branch information
mukesh-deriv authored Apr 5, 2024
2 parents f14814d + 1bdbc97 commit 8259283
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/ssh-agent/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ runs:
- name: setup read ssh key file
shell: bash -e {0}
working-directory: /tmp
env:
READ_SSH_KEY: ${{ inputs.read_github_ssh_key }}
if: inputs.read_github_ssh_key != ''
run: |
echo "${{ inputs.read_github_ssh_key }}" >> ~/.ssh/github.com.rsa
echo "$READ_SSH_KEY" >> ~/.ssh/github.com.rsa
chmod 600 ~/.ssh/github.com.rsa
ssh-add ~/.ssh/github.com.rsa
Expand All @@ -43,9 +45,11 @@ runs:
- name: setup write ssh key file
shell: bash -e {0}
working-directory: /tmp
env:
WRITE_SSH_KEY: ${{ inputs.write_github_ssh_key }}
if: inputs.write_github_ssh_key != ''
run: |
echo "${{ inputs.write_github_ssh_key }}" >> ~/.ssh/write.github.com.rsa
echo "$WRITE_SSH_KEY" >> ~/.ssh/write.github.com.rsa
chmod 600 ~/.ssh/write.github.com.rsa
ssh-add ~/.ssh/write.github.com.rsa
Expand Down

0 comments on commit 8259283

Please sign in to comment.