Skip to content

Commit

Permalink
Fix key permission (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvizeli authored Jun 4, 2021
1 parent b2ec1e2 commit 8d40307
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ runs:
- shell: bash
run: |
if [[ "${{ inputs.test }}" =~ false|False ]]; then
# Write Key
mkdir -p .ssh
echo -e "-----BEGIN RSA PRIVATE KEY-----\n${{ inputs.wheels-key }}\n-----END RSA PRIVATE KEY-----" >> .ssh/id_rsa
chmod 600 .ssh/id_rsa
# Validate & update known_hosts
ssh-keygen -y -e -f .ssh/id_rsa
ssh-keyscan -H ${{ inputs.wheels-host }} >> .ssh/known_hosts
chmod 600 .ssh/*
Expand Down

0 comments on commit 8d40307

Please sign in to comment.