From 0a1a38e1decef4be69b41a0e2dbd15f8eccee72d Mon Sep 17 00:00:00 2001 From: Bram Vandenbogaerde Date: Sun, 4 Feb 2024 23:13:31 +0100 Subject: [PATCH] actions: only enable password auth tests --- tests/run_all.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/tests/run_all.sh b/tests/run_all.sh index 93b7804..e08f34b 100755 --- a/tests/run_all.sh +++ b/tests/run_all.sh @@ -2,6 +2,9 @@ fix_permissions () { chmod -R 777 tmp/ + if [ -f "tmp/id_rsa.pub" ] ; then + chmod 0600 tmp/id_rsa.pub + fi } cleanup() { @@ -23,6 +26,7 @@ cleanup() { run_test() { local auth_method=$1 + fix_permissions echo "Testing with auth method: $auth_method" echo "Running tests" @@ -48,8 +52,13 @@ run_docker_container() { panubo/sshd } -for auth_method in "password"; do # "private_key" "private_key_with_passphrase" "ssh_agent"; do - fix_permissions +if [ -z "${GITHUB_ACTIONS}" ]; then + AUTH_METHODS="password private_key private_key_with_passphrase ssh_agent" +else + AUTH_METHODS="password" +fi + +for auth_method in $AUTH_METHODS ; do case "$auth_method" in "password") echo "Testing with password auth"