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"