From 2817df9a63f1044dddeec711a5c67a417dea80e2 Mon Sep 17 00:00:00 2001 From: Shaygun <17057583+shaygun@users.noreply.github.com> Date: Thu, 26 Nov 2026 21:35:27 +0000 Subject: [PATCH] ci: use a throwaway SSH key outside $HOME on the org runner The live-API job ran ssh-keygen -f $HOME/.ssh/id_ed25519. The org runner keeps $HOME between jobs, so the second run stopped at the "Overwrite (y/n)?" prompt and failed (run 45883775663). It would also have replaced the runner user's own key. The key now goes to $RUNNER_TEMP and the tests get it through NODERINGS_TEST_SSH_PUBLIC_KEY, which they already read. --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d95c787..3228249 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -157,7 +157,10 @@ jobs: run: | chmod +x bin/pulumi-resource-noderings mkdir -p .pulumi-state - ssh-keygen -q -t ed25519 -N "" -f "$HOME/.ssh/id_ed25519" + # A throwaway key in the job's temp dir: the org runner keeps $HOME + # between jobs, so never write to (or overwrite) its ~/.ssh. + ssh-keygen -q -t ed25519 -N "" -f "$RUNNER_TEMP/id_ed25519" + echo "NODERINGS_TEST_SSH_PUBLIC_KEY=$(cat "$RUNNER_TEMP/id_ed25519.pub")" >> "$GITHUB_ENV" cd sdk/nodejs/bin && yarn link - name: Run the examples if: env.NODERINGS_TOKEN != ''