Skip to content

Commit

Permalink
ci(wsl/home/.config/mise/config.toml): pass through GITHUB_TOKEN in t…
Browse files Browse the repository at this point in the history
…est (#1151)
  • Loading branch information
risu729 authored Dec 20, 2024
1 parent 7ecf994 commit 4957e3f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion wsl/home/.config/mise/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 4957e3f

Please sign in to comment.