Repository navigation
feat: runsOn — self-hosted / macOS / Windows runners - #32
Merged
Merged
Conversation
…nners macOS (Xcode) and Windows (MSVC) toolchains cannot run in a Linux container, so the app dispatcher needs to place the job on the right runner: - profile.runsOn (string or label array). When set, ghapp-scan does not run the task inline: it dispatches `ai-run.yml` (repo, issue, runs_on JSON) with the hub's own GITHUB_TOKEN — an org App token cannot dispatch hub workflows. - ai-run.yml runs on `fromJSON(runs_on)`, mints the target org's installation token, clones the target into RUNNER_TEMP, and runs the standard runner. - no matching runner -> the job stays queued on purpose (silently falling back to ubuntu would produce unverifiable results); documented. - ghapp-scan gains `actions: write` for the dispatch call only. - tests: runsOn normalisation (62 total).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
补齐 macOS/Windows 项目的执行环境。
runsOn(字符串或 label 数组)。ai-run.yml(用 hub 的GITHUB_TOKEN,org App token 无法 dispatch hub 工作流)。ai-run.yml在指定 label 上启动 → 签发目标组织 installation token → 克隆目标仓库 → 跑标准 runner。ghapp-scan增加actions: write(只用于 dispatch)。