Skip to content

fix(security): stop passing a write credential into the build - #23

Merged
dan-petty merged 1 commit into
mainfrom
fix/18-no-build-credential
Nov 20, 2026
Merged

dan-petty merged 1 commit into
mainfrom
fix/18-no-build-credential

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

Stop passing the workflow token into the image build.

  • The test and push jobs gave github_token to the build, and the mise-tools stage read it as GITHUB_TOKEN. In the push job, that token can write packages.
  • mise install --locked needs no credential: each download uses the URL of mise.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 --locked of all 27 tools of mise.toml exited 0, and sent 0 requests to api.github.com (50 to github.com release downloads, 2 to dl.k8s.io, 2 to get.helm.sh). This PR's CI builds both platforms with no secret.

Closes #18

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 dan-petty added type/bug Type bug: the code does not do what it must scope/security Scanner findings, ignore entries and the security policy of the image labels Nov 20, 2026
@dan-petty
dan-petty marked this pull request as ready for review November 20, 2026 18:45
@dan-petty
dan-petty merged commit 4f4a85e into main Nov 20, 2026
8 checks passed
@dan-petty
dan-petty deleted the fix/18-no-build-credential branch November 20, 2026 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/security Scanner findings, ignore entries and the security policy of the image type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(security): stop passing a write credential into the build

1 participant