From 6495c0d464d0b0df819444d213e56b8f75d56dab Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Mon, 19 Jul 2021 08:41:26 -0400 Subject: [PATCH] Stop trying to hit a specific directory with mktemp Just use the configured temporary directory in the environment. This is less great but it's still okay because: * It's our system * The deploy key has limited capabilities --- .gitlab-ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba6c8ad1..bb928aa1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -84,8 +84,7 @@ system-tests: - | # The environment variable is configured with GitLab using Terraform so # we can retain some bare minimum level of confidentiality. - KEY_DIR="$(mktemp -d -p "${XDG_RUNTIME_DIR}-deploy_key")" - KEY_PATH="${KEY_DIR}/deploy_key" + KEY_PATH="$(mktemp -d)/deploy_key" base64 --decode "${PRIVATESTORAGEIO_STAGING_SSH_DEPLOY_KEY}" > "${KEY_PATH}" # Update the deployment -- GitLab