Skip to content

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

Closed

Description

@dan-petty

Problem

The test job and the push job give the workflow credential to the image build as the build secret github_token, and the mise-tools stage reads it as the variable GITHUB_TOKEN. In the push job, that credential can write packages. The Dockerfile says that mise uses it only to raise its GitHub API rate limit.

mise makes no GitHub API request in this build. A test on 2026-11-20, in the pinned sid image with mise 2026.11.11 and no credential: mise install --locked hadolint github:kjanat/actionlint gh exited 0 and sent no request to api.github.com. Each download used the URL that mise.lock holds.

Change

  • Remove the build secret from the two build steps of .github/workflows/image.yml.
  • Remove the secret mount from the mise-tools stage of the Dockerfile, and the sentence about the rate limit.
  • Remove the README text that tells a person to give the local build a credential.

Proof

  • The test job builds the image on the two platforms with no build secret.
  • grep -n github_token Dockerfile .github/workflows/image.yml README.md prints no line.

Activity

  1. added
    type/bug
    status/new
    value/high
    effort/low
    source/agent
    on Nov 20, 2026
  2. dan-petty commented on Nov 20, 2026

    @dan-petty
    OwnerAuthor
    • Priority: P1-High. A live security vulnerability where a write credential is exposed to a build that does not need it.
    • Related: chore(image): clean up apt state, opt-out env and unused tools #13, which asks for a different change. Both modify the Dockerfile and workflow for the image build, but #13 removes unused tools and apt state while this removes an unneeded credential.
  3. added
    scope/security
    priority/p1-high
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 20, 2026
  4. removed
    status/in-review
    on Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p1-highscope/securitysource/agenttype/bugvalue/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions