Skip to content

fix #3461 #3474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
May 23, 2025
Prev Previous commit
Next Next commit
one more trial
  • Loading branch information
antgonza committed May 22, 2025
commit 3c2df9e18432d18b85db493ee4fdd01955b57a6c
7 changes: 3 additions & 4 deletions .github/workflows/qiita-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,15 @@ jobs:
cp $PWD/qiita_ware/test/test_data/test_key* ~/.ssh/
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys
cat ~/.ssh/test_key.pub > ~/.ssh/authorized_keys2
chmod 640 $PWD/qiita_ware/test/test_data/test_key*
chmod 640 ~/.ssh/*
chmod 600 $PWD/qiita_ware/test/test_data/test_key*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does authorized_keys2 get used?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should help: https://serverfault.com/a/116193. Similarly to the previous change, it's just to be sure that we have all the possible things to make this work.

chmod 600 ~/.ssh/*
chmod 700 ~/.ssh/

echo "Connecting as $USER@localhost"
# this line (and the -o StrictHostKeyChecking=no) is so the server
# is added to the list of known servers

# 05/22/25: commenting this line out as github actions is not allowing this step
# scp -vvvvvvv -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1
scp -vvvvvvv -O -o StrictHostKeyChecking=no -i $PWD/qiita_ware/test/test_data/test_key $USER@localhost:/home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key /home/runner/work/qiita/qiita/qiita_ware/test/test_data/random_key_copy_1

- name: Main tests
shell: bash -l {0}
Expand Down
Loading