Repository navigation
fix(security): stop passing a write credential into the build - #23
Merged
Merged
Conversation
The test job and the push job gave the workflow token to the build as the secret github_token, and the mise-tools stage read it as GITHUB_TOKEN. In the push job, that token can write packages. `mise install --locked` makes no GitHub API request: each download uses the URL of mise.lock. A run of all 27 tools of mise.toml on 2026-11-20, in the pinned sid image with mise 2026.11.11 and no credential, installed each tool and sent no request to api.github.com. - The two build steps give the build no secret. - The mise-tools stage has no secret mount. - The README no longer tells a person to give the local build a token. Closes #18
dan-petty
marked this pull request as ready for review
November 20, 2026 18:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stop passing the workflow token into the image build.
github_tokento the build, and themise-toolsstage read it asGITHUB_TOKEN. In the push job, that token can write packages.mise install --lockedneeds no credential: each download uses the URL ofmise.lock. The two build steps give no secret, the stage has no secret mount, and the README drops the local token step.Proof (2026-11-20, pinned sid image, mise 2026.11.11, no credential):
mise install --lockedof all 27 tools ofmise.tomlexited 0, and sent 0 requests toapi.github.com(50 togithub.comrelease downloads, 2 todl.k8s.io, 2 toget.helm.sh). This PR's CI builds both platforms with no secret.Closes #18