Skip to content

fix(ci): keep the caller mise config out of the job Lint #33

Done

Description

@dan-petty

Problem

The job Lint of lint.yml (release v0.3.0) loads the mise config of the caller. jdx/mise-action runs mise ls and mise env at the root of the caller checkout, with MISE_TRUSTED_CONFIG_PATHS set to that folder. The install step runs mise in a folder below that root. The log of the job Workflows / Lint of the run 46461702634 of main shows the two commands and the variable.

A replay with mise 2026.11.16 (checksum verified) and the mise.toml and mise.lock of main below a test caller gives:

File of the caller Result
min_version = "2027.1.0", or a required [env] variable mise ls, mise env and mise install --locked exit 1
[env] SHELLCHECK_OPTS = "-e SC2086" mise env gives the variable, and shellcheck then passes a script with SC2086
An [env] template that reads MISE_GITHUB_TOKEN The output of mise env holds the dummy token of the test
.miserc.toml with override_config_filenames The install step uses the tool file of the caller, not the mise.toml of the called commit

The caller gets no new permission: the job has contents: read, and a caller already controls its linter config files.

README.md, "lint.yml", has two gaps:

Change

  • Set MISE_CEILING_PATHS to the workspace for the job lint, and give jdx/mise-action the input env: false.
  • Correct the two texts of README.md.

Existing tool considered

mise has the setting MISE_CEILING_PATHS, and the action has the input env. The change adds no code.

Done when

  • Workflows / Lint passes on the pull request.
  • A commit with a caller mise config of the table does not change the result of the install steps, and its SHELLCHECK_OPTS does not reach shellcheck.
  • README.md holds the two corrections.

Source

Source: #23

Activity

  1. added
    type/bug
    status/new
    value/medium
    effort/low
    on Nov 30, 2026
  2. dan-petty commented on Nov 30, 2026

    @dan-petty
    OwnerAuthor
    • Priority: A conditional CI correctness bug for callers with specific mise configs, not a universal failure. The failed run 46461702634 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 with the label priority/p0-critical.
    • Related: feat(ci): add the reusable workflow lint.yml #21, which asks for a different change. Both target lint.yml, but #21 adds the workflow while the candidate fixes caller mise config leaking in it.
  3. added
    source/agent
    scope/ci
    priority/p2-medium
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 30, 2026
  4. removed
    status/in-review
    on Dec 1, 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/p2-mediumscope/cisource/agenttype/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions