Skip to content

[codex] Mask repo token for mise release lookups#5813

Merged
AceHack merged 4 commits into
mainfrom
claim/task-setup-mise-tool-pins-20260528
May 28, 2026
Merged

[codex] Mask repo token for mise release lookups#5813
AceHack merged 4 commits into
mainfrom
claim/task-setup-mise-tool-pins-20260528

Conversation

@AceHack
Copy link
Copy Markdown
Member

@AceHack AceHack commented May 28, 2026

Summary

  • mask the default GitHub Actions GITHUB_TOKEN only around mise install when no dedicated mise token is provided
  • document why the repo-scoped token causes cross-repo mise/aqua release lookups to return 404

Why

#5800 showed many lint jobs failing before their checks ran because mise/aqua used the workflow GITHUB_TOKEN against external release endpoints for uv, shellcheck, and actionlint. The release tags exist; the token scope is the problem.

Validation

  • bash -n tools/setup/common/mise.sh
  • git diff --check
  • actionlint .github/workflows/gate.yml
  • GITHUB_ACTIONS=true GITHUB_TOKEN=invalid-token ./tools/setup/common/mise.sh

Draft because the active claim file remains on the branch and should be removed before merge.

Lior and others added 2 commits May 28, 2026 09:15
Reserve the setup-pin repair lane after #5800 exposed shared mise/aqua 404 failures for uv and actionlint.

Validation:

- git diff --check

Agency-Signature-Version: 1

Agent: Vera

Agent-Runtime: OpenAI Codex

Agent-Model: GPT-5

Credential-Identity: AceHack

Credential-Mode: shared

Human-Review: not-implied-by-credential

Human-Review-Evidence: none

Action-Mode: autonomous-fail-open

Task: task-setup-mise-tool-pins-20260528

Co-Authored-By: Codex <noreply@openai.com>
GitHub Actions exposes a repository-scoped GITHUB_TOKEN. mise's aqua backend reuses that token for public release metadata in external repositories such as astral-sh/uv, koalaman/shellcheck, and rhysd/actionlint; GitHub returns 404 for those cross-repo calls under the repo token.

Mask GITHUB_TOKEN only for the mise install call when running in GitHub Actions and no dedicated MISE_GITHUB_TOKEN or GITHUB_API_TOKEN is provided. Dedicated mise tokens still win; otherwise mise falls back to public release lookups instead of poisoned authenticated ones.

Validation:

- bash -n tools/setup/common/mise.sh

- git diff --check

- actionlint .github/workflows/gate.yml

- GITHUB_ACTIONS=true GITHUB_TOKEN=invalid-token ./tools/setup/common/mise.sh

Agency-Signature-Version: 1

Agent: Vera

Agent-Runtime: OpenAI Codex

Agent-Model: GPT-5

Credential-Identity: AceHack

Credential-Mode: shared

Human-Review: not-implied-by-credential

Human-Review-Evidence: none

Action-Mode: autonomous-fail-open

Task: task-setup-mise-tool-pins-20260528

Co-Authored-By: Codex <noreply@openai.com>
Copilot AI review requested due to automatic review settings May 28, 2026 13:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts CI setup so mise install does not use the repository-scoped GitHub Actions token for cross-repository aqua release lookups, avoiding misleading 404 failures during toolchain installation.

Changes:

  • Masks GITHUB_TOKEN around mise install in GitHub Actions when no dedicated mise/GitHub API token is configured.
  • Updates gate.yml comments to document the token masking behavior.
  • Adds an active claim file for the setup/mise repair work.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
tools/setup/common/mise.sh Adds conditional GITHUB_TOKEN removal for mise install in Actions.
.github/workflows/gate.yml Updates workflow comments explaining token scope and mise behavior.
docs/claims/task-setup-mise-tool-pins-20260528.md Adds the active claim record for this work.

Comment thread docs/claims/task-setup-mise-tool-pins-20260528.md Outdated
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 28, 2026

CI stack update, 2026-05-28T13:31Z

PR #5813 setup-token fix is validated by the completed run: setup-heavy lint jobs now install tools and reach their real scripts.

Remaining #5813 blockers are confirmed from failed logs:

Current safe route: do not rerun #5800/#5808 lint jobs until the setup-token fix is available on their tested ref, and do not edit their owned path sets from #5813. The next coordination move is a shared/stack branch that contains #5800 + #5808 + #5813, or landing those repairs in dependency order once CI can observe the setup fix.

Per docs/claims/README.md: live claims under docs/claims/ are released
by deleting the file in the same PR that lands the work. The implementation
lands in this PR (gate.yml + mise.sh); deleting the active claim file.

Resolves Copilot review thread on PR #5813.

Co-Authored-By: Claude <noreply@anthropic.com>
@AceHack
Copy link
Copy Markdown
Member Author

AceHack commented May 28, 2026

Addressed Copilot finding in 99962a9: deleted the claim file per docs/claims/README.md release-protocol. Thread resolved; arming auto-merge.

Co-Authored-By: Claude noreply@anthropic.com

@AceHack AceHack marked this pull request as ready for review May 28, 2026 14:06
Copilot AI review requested due to automatic review settings May 28, 2026 14:06
@AceHack AceHack enabled auto-merge (squash) May 28, 2026 14:06
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/gate.yml
Update the copied lean-proof workflow comment to match gate.yml: the repo-scoped Actions token remains available to steps, but setup/common/mise.sh masks it during mise install unless a dedicated mise token is supplied.

Addresses the unresolved Copilot config-drift thread on PR #5813.

Validation:

- git diff --check

- actionlint .github/workflows/lean-proof.yml

Agency-Signature-Version: 1

Agent: Codex Background Service

Agent-Runtime: OpenAI Codex

Agent-Model: GPT-5

Credential-Identity: AceHack

Credential-Mode: shared

Human-Review: not-implied-by-credential

Human-Review-Evidence: none

Action-Mode: autonomous-fail-open

Task: task-setup-mise-tool-pins-20260528

Co-Authored-By: Codex <noreply@openai.com>

Codex-Origin: codex-launchd-loop

Codex-Surface: codex-background-service

Codex-Loop-Run-Id: 20260528T142510Z
@AceHack AceHack merged commit d979208 into main May 28, 2026
33 of 35 checks passed
@AceHack AceHack deleted the claim/task-setup-mise-tool-pins-20260528 branch May 28, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants