Skip to content

Commit 8e6f3cc

Browse files
committed
Use SSHPASS env variable instead of command line argument
1 parent 900d87b commit 8e6f3cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/linux_uts.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
- name: SSH With Password
1717
run: |
1818
sshpass -h
19-
sshpass -p "${{ secrets.JADE_RUNNER_PASSWORD }}" "${{ secrets.JADE_RUNNER_USERNAME }}"@"${{ secrets.JADE_IP }}"
19+
sshpass -e ${{ secrets.JADE_RUNNER_USERNAME }}@${{ secrets.JADE_IP }}
20+
env:
21+
SSHPASS: ${{ secrets.JADE_RUNNER_PASSWORD }}
2022
- name: SSH Set up
2123
run: |
2224
mkdir -p ~/.ssh

0 commit comments

Comments
 (0)