[openssh-commits] [openssh] 04/04: Set runner pasword to random string.
git+noreply at mindrot.org
git+noreply at mindrot.org
Wed May 21 16:11:59 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch V_10_0
in repository openssh.
commit cbe3b8ab01d47f12201904e53e4f1edf88edc842
Author: Darren Tucker <dtucker at dtucker.net>
AuthorDate: Tue May 20 15:01:29 2025 +1000
Set runner pasword to random string.
The most recent version of the Github ubuntu-latest image sets the
password field to "!" which sshd considers to be a locked account,
breaking most of the tests.
---
.github/setup_ci.sh | 17 +++++++++++++++--
.github/workflows/c-cpp.yml | 2 +-
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
index b381adebe..711a46952 100755
--- a/.github/setup_ci.sh
+++ b/.github/setup_ci.sh
@@ -1,8 +1,11 @@
#!/bin/sh
+config="$1"
+target="$2"
+
PACKAGES=""
- . .github/configs $@
+ . .github/configs ${config}
host=`./config.guess`
echo "config.guess: $host"
@@ -32,7 +35,7 @@ case "$host" in
PACKAGER=apt
esac
-TARGETS=$@
+TARGETS=${config}
INSTALL_FIDO_PPA="no"
export DEBIAN_FRONTEND=noninteractive
@@ -289,3 +292,13 @@ if [ ! -z "${INSTALL_PUTTY}" ]; then
)
/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.
+ pw=$(openssl rand -base64 9)
+ sudo usermod --password "${pw}" runner
+ sudo usermod --unlock runner
+ ;;
+esac
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 91b07ed97..7c37c9ce2 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -128,7 +128,7 @@ jobs:
CYGWIN: "winsymlinks:native"
- uses: actions/checkout at main
- name: setup CI system
- run: sh ./.github/setup_ci.sh ${{ matrix.config }}
+ run: sh ./.github/setup_ci.sh ${{ matrix.config }} ${{ matrix.target }}
env:
CYGWIN_SETUP: ${{ steps.cygwin_install.outputs.setup }}
- name: autoreconf
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list