From 4277f7a356fde471d90f59b13a3eb653762cf611 Mon Sep 17 00:00:00 2001 From: t Date: Wed, 25 Nov 2026 12:09:53 -0700 Subject: Keep mise.local.toml out of the release task test Its CODEBERG_TOKEN replaced the test's fake tokens, so the fake server answered 401 and was sent the real token. Load only mise.toml. --- scripts/test-release-task.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/test-release-task.sh b/scripts/test-release-task.sh index fa0da33..1d2c572 100644 --- a/scripts/test-release-task.sh +++ b/scripts/test-release-task.sh @@ -68,7 +68,8 @@ done API="http://127.0.0.1:$(cat "$TMP/port")" ASSETS="Write_Away-$VER-macos-arm64.zip SHA256SUMS" -publish() { CODEBERG_TOKEN="${1:-fake}" WRITE_AWAY_API="$API" mise run release:publish; } +# mise.local.toml would replace these tokens with the real one: load only mise.toml. +publish() { MISE_OVERRIDE_CONFIG_FILENAMES=mise.toml CODEBERG_TOKEN="${1:-fake}" WRITE_AWAY_API="$API" mise run release:publish; } expect() { got="$(curl -fsS "$API/state")" [ "$got" = "$1" ] || { echo "$2: got '$got', expected '$1'" >&2; exit 1; } -- cgit v1.3