Repository navigation
feat(runner-policy): approve the macos-26 hosted runner label - #845
Conversation
Add macos-26, the arm64 standard image macos-latest points to, to approvedHostedRunnerLabels so a public repository can pin a macOS job. macos-latest stays forbidden, and a larger runner label such as macos-26-xlarge stays unapproved; a new test pins both. Refs: melodic-software/claude-code-plugins#9080 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_0134VnRFcSNehg9ngFzVCxFh
Approving macos-26 let a private repository reach it: with routing off (selfHostedCi false) no exception is required, and an enrolled one could consume any exception reason such as windows. macOS minutes bill on private repositories, so any private job naming a macOS label in runs-on, a matrix or a reusable with: value now reports private-macos-runner, whatever its enrollment or exceptions. Refs: melodic-software/claude-code-plugins#9080 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 727b33b7e7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
claude-review reviewed Incremental review of 247b94b (
|
…unner The check flagged any matrix or with: value containing "macos", such as a matrix name skip-macos-legs or a path tools/macos/setup.sh on an ubuntu job. It now matches a trimmed value of the form /^macos(-|$)/i, which covers macos, macos-26, macos-latest and the larger-runner labels. Refs: melodic-software/claude-code-plugins#9080 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: incremental (3f5b450 → 247b94b)No security findings. The change touches
The skip gate (no security-relevant surface) applied in substance. I read the diff and the surrounding code in |
The anchored match missed a runner string that does not start with the label, such as a reusable with: value '["macos-26"]' that the called workflow passes to fromJSON, or a quoted 'macos-latest'. Each runner string is now split on whitespace, commas, brackets and quotes, and any token of the form /^macos(-|$)/i reports private-macos-runner. Refs: melodic-software/claude-code-plugins#9080 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: melodic-software/claude-code-plugins#9080
Summary
Adds
macos-26toapprovedHostedRunnerLabelsso a public repository can pin a macOS job. The owner decided on 2026-10-22 to run the claude-code-plugins planning shared Python suites on macOS. The policy forbidsmacos-latest, and today it rejectsmacos-26withrunner-target-contract: runner target "macos-26" is not in the approved hosted-runner label allowlist.Fix
components/runner-policy/policy.json:approvedHostedRunnerLabelsis now["ubuntu-24.04", "windows-2025", "macos-26"].runner-policy.test.mjs: public +macos-26passes, andmacos-26-xlargeis still rejected (runner-target-contract). Private +selfHostedCi: false+macos-26, and private enrolled + awindowsexception +macos-26, both reportprivate-macos-runner. So does a private matrix with amacos-26entry. A private ubuntu job whose matrixname: [skip-macos-legs]and reusablewith: path: tools/macos/setup.shonly mention the word reports noprivate-macos-runner.Why this label: GitHub-hosted runners reference lists
macos-26withmacos-latestin the arm64 standard row. In runner-images README,macos-latestandmacos-26both map to macOS 26 Arm64, and "the-latestlabel is used for the latest OS image version that is GA." That matches howubuntu-24.04andwindows-2025were chosen: pin the image-latestpoints to now. Per Actions billing, standard hosted runners in public repositories are free, and larger runners are always billed.runner-policy.mjs: macOS labels are public-only. A private repository that names a macOS label anywhere (runs-on, a matrix value or a reusablewith:value) gets the newprivate-macos-runnerfinding. Each runner string is split on whitespace, commas, brackets and quotes, and a label counts when any token matches/^macos(-|$)/i:macos,macos-26,macos-latest,macos-26-xlargeormacos-14-large. The split catches a JSON array such as'["macos-26"]'passed through a reusablewith:toruns-on: ${{ fromJSON(inputs.runs-on) }}, a list such asmacos-26, ubuntu-24.04, and a quoted'macos-latest'. A matrix orwith:value that only contains the word, such asskip-macos-legsortools/macos/setup.sh, does not count. Aruns-onexpression is left torunner-target-contract. This holds whatever the repository'sselfHostedCior exceptions say. Without this, approving the label would have opened a way to be charged. On a private repository withselfHostedCi: false, routing is off (routingEnabled = private && selfHostedCi), so no exception is required. An enrolled private repository could have used any exception reason,windowsincluded. Either way the job would runmacos-26, which bills on private repositories.README.md: the hosted-only paragraph now says macOS labels are public-only.Verification
actual: []/actual: false, and the public case passed.tools/macos/setup.shandskip-macos-legsflagged.["macos-26"]with'["macos-26"]' is not refused. It also misses'macos-latest'(/^macos(-|$)/igives false), while it already matchedmacos-26, ubuntu-24.04.node --test components/runner-policy/runner-policy.test.mjsgives 334 pass, 0 fail. Biome and markdownlint are clean.GITHUB_REPOSITORY=melodic-software/standards node components/runner-policy/runner-policy.mjs --root .:Runner policy passed.policy.jsonandrunner-policy.mjsinto the claude-code-plugins branch (public) and ran the analyzer there. Themacos-26job passes with it and fails without it.Related
THREAT-MODEL.md("Review triggers") list new runner expressions, exception reasons and similar items. A new approved hosted label is not among them, andREADME.mdcalls adding one "a reviewed, data-only policy change". The owner still decides, because this widens the allowlist for every consumer.🤖 Generated with Claude Code