From dab848814a997865c33dcdb7968cc1dc9d4d48c5 Mon Sep 17 00:00:00 2001 From: Jussi Hallila Date: Thu, 2 Jan 2025 15:46:15 +0100 Subject: [PATCH] Add user endpoint configuration for GHES accept.json --- dockerfiles/github-enterprise/accept.json | 5 +++++ dockerfiles/github-enterprise/start | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/dockerfiles/github-enterprise/accept.json b/dockerfiles/github-enterprise/accept.json index 5b933d6..f9f299a 100644 --- a/dockerfiles/github-enterprise/accept.json +++ b/dockerfiles/github-enterprise/accept.json @@ -16,6 +16,11 @@ "token": "${GHES_TOKEN}" } }, + { + "method": "GET", + "path": "/user", + "origin": "${GHES_API_URL}" + }, { "method": "GET", "path": "/*", diff --git a/dockerfiles/github-enterprise/start b/dockerfiles/github-enterprise/start index 6c824dc..3bb93cd 100755 --- a/dockerfiles/github-enterprise/start +++ b/dockerfiles/github-enterprise/start @@ -8,6 +8,10 @@ if [ -z "GHES_RAW_URL"]; then echo "You must provide GHES_RAW_URL" exit 1 fi +if [ -z "GHES_API_URL"]; then + echo "You must provide GHES_API_URL" + exit 1 +fi if [ -z "GHES_TOKEN"]; then echo "You must provide GHES_TOKEN"