Skip to content

Commit 22d9ed0

Browse files
committed
fix risky contexts
1 parent f14814d commit 22d9ed0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/actions/ssh-agent/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ runs:
2626
- name: setup read ssh key file
2727
shell: bash -e {0}
2828
working-directory: /tmp
29+
env:
30+
READ_SSH_KEY: ${{ inputs.read_github_ssh_key }}
2931
if: inputs.read_github_ssh_key != ''
3032
run: |
31-
echo "${{ inputs.read_github_ssh_key }}" >> ~/.ssh/github.com.rsa
33+
echo "$READ_SSH_KEY" >> ~/.ssh/github.com.rsa
3234
chmod 600 ~/.ssh/github.com.rsa
3335
ssh-add ~/.ssh/github.com.rsa
3436
@@ -43,9 +45,11 @@ runs:
4345
- name: setup write ssh key file
4446
shell: bash -e {0}
4547
working-directory: /tmp
48+
env:
49+
WRITE_SSH_KEY: ${{ inputs.write_github_ssh_key }}
4650
if: inputs.write_github_ssh_key != ''
4751
run: |
48-
echo "${{ inputs.write_github_ssh_key }}" >> ~/.ssh/write.github.com.rsa
52+
echo "$WRITE_SSH_KEY" >> ~/.ssh/write.github.com.rsa
4953
chmod 600 ~/.ssh/write.github.com.rsa
5054
ssh-add ~/.ssh/write.github.com.rsa
5155

0 commit comments

Comments
 (0)