Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changeset/olive-donkeys-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

Preset MISE_GITHUB_TOKEN in the mise-setup action
12 changes: 12 additions & 0 deletions .github/actions/mise-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,24 @@ runs:
# (analogous to pnpm `--frozen-lockfile`). jdx/mise-action already
# sets MISE_YES + MISE_TRUSTED_CONFIG_PATHS, so trust prompts and
# interactive confirmations are handled by the action itself.
#
# MISE_GITHUB_TOKEN is set here rather than left to mise-action's
# own github_token input (which already defaults to github.token).
# The action exports that variable only *after* it has run
# `mise self-update`, so when a restored cache holds a different
# mise version than the pinned one below, self-update queries the
# GitHub releases API unauthenticated and 403s under rate limiting.
# Presetting wins because the action skips any variable already in
# the environment. See jdx/mise-action#292; drop this line once the
# action exports the token before it self-updates.
- env:
DATA_DIR: ${{ runner.temp }}/.mise
GH_TOKEN: ${{ github.token }}
name: Configure mise environment
run: |
{
echo "MISE_DATA_DIR=${DATA_DIR}"
echo "MISE_GITHUB_TOKEN=${GH_TOKEN}"
echo "MISE_LOCKED=1"
} >> "$GITHUB_ENV"
shell: bash
Expand Down