Skip to content

Commit

Permalink
ci: fix key permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pahaz committed May 12, 2023
1 parent b50b09f commit 5e124da
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
- uses: actions/checkout@v2
- name: Docker compose up databases and ssh-server
run: |
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_ecdsa_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_ed25519_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_rsa_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_dsa_key
cd e2e_tests && docker-compose up -d
- name: Install dependencies
Expand All @@ -32,15 +36,6 @@ jobs:
${{ matrix.python }} -m pip install .
${{ matrix.python }} -m pip install psycopg2-binary>=2.9.6 pymysql>=1.0.3 pymongo>=4.3.3
docker exec openssh-server chmod 600 /etc/ssh/ssh_host_ecdsa_key
docker exec openssh-server chmod 600 /etc/ssh/ssh_host_ed25519_key
docker exec openssh-server chmod 600 /etc/ssh/ssh_host_rsa_key
docker exec openssh-server chmod 600 /etc/ssh/ssh_host_dsa_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_ecdsa_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_ed25519_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_rsa_key
chmod 600 ./e2e_tests/ssh-server-config/ssh_host_dsa_key
ssh -o "StrictHostKeyChecking=no" linuxserver@127.0.0.1 -p 2223 -i ./e2e_tests/ssh-server-config/ssh_host_rsa_key -v "uname -a"
# cd e2e_tests && docker-compose logs ssh; cd ..
# cd e2e_tests && docker-compose exec ssh cat /config/logs/openssh/current; cd ..
Expand Down

0 comments on commit 5e124da

Please sign in to comment.