mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Test hostbased auth on github runners.
This commit is contained in:
parent
7e2f51940b
commit
fdbd5bf507
14
.github/run_test.sh
vendored
14
.github/run_test.sh
vendored
@ -6,6 +6,20 @@
|
|||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
|
# If we want to test hostbased auth, set up the host for it.
|
||||||
|
if [ ! -z "$SUDO" ] && [ ! -x "$TEST_SSH_HOSTBASED_AUTH" ]; then
|
||||||
|
sshconf=/usr/local/etc
|
||||||
|
hostname | $SUDO tee $sshconf/shosts.equiv >/dev/null
|
||||||
|
echo "EnableSSHKeysign yes" | $SUDO tee $sshconf/ssh_config >/dev/null
|
||||||
|
$SUDO mkdir -p $sshconf
|
||||||
|
$SUDO cp -p /etc/ssh/ssh_host*key* $sshconf
|
||||||
|
$SUDO make install
|
||||||
|
for key in $sshconf/ssh_host*key*.pub; do
|
||||||
|
echo `hostname` `cat $key` | \
|
||||||
|
$SUDO tee -a $sshconf/ssh_known_hosts >/dev/null
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
output_failed_logs() {
|
output_failed_logs() {
|
||||||
for i in regress/failed*; do
|
for i in regress/failed*; do
|
||||||
if [ -f "$i" ]; then
|
if [ -f "$i" ]; then
|
||||||
|
1
.github/workflows/c-cpp.yml
vendored
1
.github/workflows/c-cpp.yml
vendored
@ -99,6 +99,7 @@ jobs:
|
|||||||
run: ./.github/run_test.sh ${{ matrix.configs }}
|
run: ./.github/run_test.sh ${{ matrix.configs }}
|
||||||
env:
|
env:
|
||||||
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
TEST_SSH_UNSAFE_PERMISSIONS: 1
|
||||||
|
TEST_SSH_HOSTBASED_AUTH: yes
|
||||||
- name: save logs
|
- name: save logs
|
||||||
if: failure()
|
if: failure()
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user