From 49882f4bd40c2ecc76849a28d273f727c994a676 Mon Sep 17 00:00:00 2001 From: slayerjain Date: Sun, 1 Nov 2026 15:25:21 +0530 Subject: [PATCH] ci: install keploy without writing install.sh in the checkout The sandbox workflow's install step saved the installer as ./install.sh in the checkout with `curl --silent -O -L` and then ran it. A repository that tracks its own install.sh had it overwritten before any installer code ran, and without -f a failed download saved an error page there. The step now saves the installer to a temp file outside the checkout, runs it only once the whole file has arrived, removes it, and fails the step when the download (an HTTP error or a transfer cut off partway) or the installer fails. It is the line keploy's MCP now generates for this workflow. Signed-off-by: slayerjain --- .github/workflows/keploy-sandbox.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/keploy-sandbox.yml b/.github/workflows/keploy-sandbox.yml index 07f7d2c..269323f 100644 --- a/.github/workflows/keploy-sandbox.yml +++ b/.github/workflows/keploy-sandbox.yml @@ -23,8 +23,7 @@ jobs: - name: Install keploy enterprise run: | - curl --silent -O -L https://keploy.io/ent/install.sh - sudo bash install.sh + keploy_rc=0; keploy_sh="$(mktemp)" && curl -fsSL https://keploy.io/ent/install.sh -o "$keploy_sh" && sudo bash "$keploy_sh" || keploy_rc=$?; rm -f "$keploy_sh"; [ "$keploy_rc" -eq 0 ] keploy --version - name: Bring up app dependencies