/usr/local/bin/plink -V
fi
-# This is the github "target" as specificed in the yml file.
-case "${target}" in
-ubuntu-latest)
- echo ubuntu-latest target: setting random password string.
+# If we're running on an ephemeral VM, set a random password and set
+# up to run the password auth test.
+if [ ! -z "${EPHEMERAL_VM}" ]; then
+
+ # This is the github "target" as specified in the yml file.
+ # In particular, ubuntu-latest sets the password field to the locked
+ # value, so unless we reset it here most of the tests will fail.
+ case "${target}" in
+ ubuntu-*)
+ echo ${target} target: setting random password string.
pw=$(openssl rand -base64 9)
sudo usermod --password "${pw}" runner
sudo usermod --unlock runner
+ echo "${pw}" > regress/password
;;
-esac
+ esac
+fi
- { target: macos-15, config: pam }
runs-on: ${{ matrix.target }}
steps:
+ - env:
+ EPHEMERAL_VM: yes
- name: check RUN_ONLY_TARGET_CONFIG
if: vars.RUN_ONLY_TARGET_CONFIG != ''
run: sh -c 'if [ "${{ vars.RUN_ONLY_TARGET_CONFIG }}" != "${{ matrix.target }} ${{matrix.config }}" ]; then exit 1; else exit 0; fi'