ci: migrate CodeQL to self-hosted ARC runner (develop) - #159
Conversation
Migrate the CodeQL analyze job off GitHub-hosted ubuntu-latest onto our self-hosted ARC fleet via vars.RUNNER_LINUX_X64_4 (smallest pool per security-scan policy), keeping the ubuntu-latest fallback. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
Summary by CodeRabbit
WalkthroughThe CodeQL ChangesCodeQL workflow runner
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Greptile SummaryThis PR migrates the CodeQL
Confidence Score: 4/5The change is a one-line runner expression swap with a sensible fallback; no workflow logic, steps, or permissions are altered. Moving the CodeQL job to a self-hosted runner while retaining the
Important Files Changed
Sequence Diagram%%{init: {'theme': 'neutral'}}%%
sequenceDiagram
participant GH as GitHub (push/PR to test)
participant ARC as Self-Hosted ARC Runner<br/>(RUNNER_LINUX_X64_4)
participant FBK as ubuntu-latest (fallback)
GH->>ARC: Dispatch `analyze` job (if RUNNER_LINUX_X64_4 set)
alt RUNNER_LINUX_X64_4 defined
ARC->>ARC: "actions/checkout@v7"
ARC->>ARC: "github/codeql-action/init@v2 (javascript)"
ARC->>ARC: "github/codeql-action/autobuild@v2"
ARC->>ARC: "github/codeql-action/analyze@v2"
ARC-->>GH: Upload security-events results
else RUNNER_LINUX_X64_4 not defined
GH->>FBK: Dispatch `analyze` job (fallback)
FBK->>FBK: Same CodeQL steps
FBK-->>GH: Upload security-events results
end
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
sequenceDiagram
participant GH as GitHub (push/PR to test)
participant ARC as Self-Hosted ARC Runner<br/>(RUNNER_LINUX_X64_4)
participant FBK as ubuntu-latest (fallback)
GH->>ARC: Dispatch `analyze` job (if RUNNER_LINUX_X64_4 set)
alt RUNNER_LINUX_X64_4 defined
ARC->>ARC: "actions/checkout@v7"
ARC->>ARC: "github/codeql-action/init@v2 (javascript)"
ARC->>ARC: "github/codeql-action/autobuild@v2"
ARC->>ARC: "github/codeql-action/analyze@v2"
ARC-->>GH: Upload security-events results
else RUNNER_LINUX_X64_4 not defined
GH->>FBK: Dispatch `analyze` job (fallback)
FBK->>FBK: Same CodeQL steps
FBK-->>GH: Upload security-events results
end
|
Migrate the CodeQL
analyzejob from GitHub-hostedubuntu-latestto our self-hosted ARC fleet via${{ vars.RUNNER_LINUX_X64_4 || 'ubuntu-latest' }}(smallest pool, per security-scan-runs-on-_4 policy), retaining theubuntu-latestfallback.Other workflows on this branch (build-native-binaries.yml, publish-npm-packages.yml) already run their Linux jobs on
RUNNER_LINUX_X64_4; macOS/Windows matrix entries are intentionally left untouched.🤖 Generated with Claude Code