From ee34d420bb26a3b9e1e1414b19e17bb001073228 Mon Sep 17 00:00:00 2001 From: Matt Whittaker <34448412+mattops@users.noreply.github.com> Date: Thu, 9 Jan 2025 17:45:44 +0000 Subject: [PATCH] try --- src/usr/local/bin/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr/local/bin/entrypoint.sh b/src/usr/local/bin/entrypoint.sh index ed01263..b962207 100755 --- a/src/usr/local/bin/entrypoint.sh +++ b/src/usr/local/bin/entrypoint.sh @@ -16,6 +16,7 @@ getRegistrationToken=$( --silent \ --location \ --request "POST" \ + --header "Accept: application/vnd.github+json" \ --header "X-GitHub-Api-Version: 2022-11-28" \ --header "Authorization: Bearer ${GH_AUTH_TOKEN}" \ https://api.github.com/org/ministryofjustice/actions/runners/registration-token | jq -r '.token' @@ -39,7 +40,7 @@ else fi echo "Checking the runner" -bash "${ACTIONS_RUNNER_DIRECTORY}/config.sh" --check --url "https://github.com/${GITHUB_REPOSITORY}" --pat ${GH_AUTH_TOKEN} +bash "${ACTIONS_RUNNER_DIRECTORY}/config.sh" --check --url "https://github.com/ministryofjustice" --pat ${GH_AUTH_TOKEN} echo "Configuring runner" bash "${ACTIONS_RUNNER_DIRECTORY}/config.sh" ${EPHEMERAL_FLAG} \