From c7a0f39f291f05c423840abf9930a9fea6a1d0c7 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Fri, 26 Jun 2026 07:17:53 -0500 Subject: [PATCH] Pass GH_TOKEN to containers started during tests --- tests/fulltests/test.sh | 1 + tests/setuponlytests/test.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/fulltests/test.sh b/tests/fulltests/test.sh index a1bde85c..db99943f 100755 --- a/tests/fulltests/test.sh +++ b/tests/fulltests/test.sh @@ -16,6 +16,7 @@ fullMinecraftUpTest(){ --attach-dependencies --always-recreate-deps --abort-on-container-failure + -e GH_TOKEN="${GH_TOKEN:-}" ) if ! docker compose -f "$file" up "${upArgs[@]}" monitor; then echo "$(dirname "$file") Result: failed" diff --git a/tests/setuponlytests/test.sh b/tests/setuponlytests/test.sh index 4c759e79..b776cd82 100755 --- a/tests/setuponlytests/test.sh +++ b/tests/setuponlytests/test.sh @@ -46,7 +46,7 @@ setupOnlyMinecraftTest(){ start=$(date +%s) status=PASSED verify= - if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" mc 2>&1); then + if ! logs=$(docker compose run --rm -e SETUP_ONLY=true -e DEBUG="${DEBUG:-false}" -e GH_TOKEN="${GH_TOKEN:-}" mc 2>&1); then status=FAILED outputContainerLog "$logs" result=1