From 4957e3fde99a412986b1bfbee5acda97cd328d8b Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:25:58 +0900 Subject: [PATCH] ci(wsl/home/.config/mise/config.toml): pass through GITHUB_TOKEN in test (#1151) --- wsl/home/.config/mise/config.toml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wsl/home/.config/mise/config.toml b/wsl/home/.config/mise/config.toml index 9dd7bc3b..764daa9b 100644 --- a/wsl/home/.config/mise/config.toml +++ b/wsl/home/.config/mise/config.toml @@ -14,7 +14,13 @@ GPG_TTY = "{% if env.CI is undefined %}{{ exec(command='tty') }}{% endif %}" # set GITHUB_TOKEN to avoid rate limit while using mise [env.GITHUB_TOKEN] -value = "{% if env.CI is undefined %}{{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}{% endif %}" +value = """ +{% if env.CI is undefined %}\ + {{ exec(command='gh auth token', cache_key='github_token', cache_duration='1 day') }}\ +{% else %}\ + {{ env.GITHUB_TOKEN }}\ +{% endif %}\ +""" tools = true [tools]