gh: Add the codeql-runs-on input to codeql workflows#315
Merged
Conversation
dopey
approved these changes
May 5, 2026
There was a problem hiding this comment.
Pull request overview
This PR adds a configurable codeql-runs-on input to the repository’s reusable CodeQL workflows so callers can choose a different GitHub Actions runner label (e.g., a larger runner) without forking. The default remains ubuntu-latest, so existing callers should see no behavior change.
Changes:
- Add a
codeql-runs-onworkflow input (defaultubuntu-latest) to relevant reusable workflows. - Wire the new input through wrapper workflows (
goCI.yml,code-scan.yml) into the underlyingcodeql-analysis.yml. - Update
codeql-analysis.ymlto use the input to drive the job’sruns-on.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/goCI.yml | Adds codeql-runs-on input and forwards it to the called codeql-analysis.yml workflow. |
| .github/workflows/codeql-analysis.yml | Introduces codeql-runs-on input and uses it as the job runs-on value. |
| .github/workflows/code-scan.yml | Adds codeql-runs-on input and forwards it to codeql-analysis.yml. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
This PR adds a
codeql-runs-oninput tocodeql-analysis.yml,goCI.yml, andcode-scan.ymlso callers can pick a larger runner for CodeQL without forking these workflows.The default is
ubuntu-latest, so existing callers see no behavior change. The input keeps thecodeql-prefix used by the other CodeQL inputs (codeql-build-cmd,codeql-build-mode,codeql-make-bootstrap); it's mapped to the job's unprefixedruns-ononly at thecodeql-analysis.ymllayer.