fix!: properly pass github_token in use-mise (#1568)

* test-use-mise

* fix!: properly pass github_token in use-mise
This commit is contained in:
bo0tzz
2026-05-06 12:17:29 -04:00
committed by GitHub
parent f16df2948c
commit fc38a2f8d5
2 changed files with 11 additions and 4 deletions
+9 -2
View File
@@ -58,11 +58,18 @@ jobs:
- name: Use Mise
uses: ./actions/use-mise
with:
github-token: ${{ github.token }}
github_token: ${{ github.token }}
- name: Verify github_token was forwarded to mise-action
run: |
if [ -z "${MISE_GITHUB_TOKEN:-}" ]; then
echo "::error::MISE_GITHUB_TOKEN is unset — use-mise did not forward github_token to jdx/mise-action"
exit 1
fi
- name: Verify mise version matches pinned version
run: |
expected=$(yq '.runs.steps[0].with.version' actions/use-mise/action.yml)
expected=$(yq '(.runs.steps[] | select(.uses | test("^jdx/mise-action"))).with.version' actions/use-mise/action.yml)
actual=$(mise --version | awk '{print $1}')
echo "Expected: $expected"
echo "Actual: $actual"
+2 -2
View File
@@ -1,7 +1,7 @@
name: 'Use Mise'
description: 'Use Mise with a pinned version'
inputs:
github-token:
github_token:
description: 'Github token to use'
required: true
working_directory:
@@ -12,7 +12,7 @@ runs:
steps:
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
github_token: ${{ inputs.GITHUB_TOKEN }}
github_token: ${{ inputs.github_token }}
working_directory: ${{ inputs.working_directory }}
version: 2026.3.13
sha256: ${{ runner.os == 'Linux' && runner.arch == 'X64' && '806790b4a71c93d20e027c40ddf38470fa6e26555275b1181a3c2ccc082ef56f' ||