Skip to content

gh: Add the codeql-runs-on input to codeql workflows#315

Merged
azazeal merged 1 commit intomainfrom
panos/codeql-runs-on
May 5, 2026
Merged

gh: Add the codeql-runs-on input to codeql workflows#315
azazeal merged 1 commit intomainfrom
panos/codeql-runs-on

Conversation

@azazeal
Copy link
Copy Markdown
Contributor

@azazeal azazeal commented May 5, 2026

This PR adds a codeql-runs-on input to codeql-analysis.yml, goCI.yml, and code-scan.yml so 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 the codeql- prefix used by the other CodeQL inputs (codeql-build-cmd, codeql-build-mode, codeql-make-bootstrap); it's mapped to the job's unprefixed runs-on only at the codeql-analysis.yml layer.

@azazeal azazeal marked this pull request as ready for review May 5, 2026 18:56
@azazeal azazeal requested a review from a team as a code owner May 5, 2026 18:56
@azazeal azazeal enabled auto-merge May 5, 2026 18:56
@azazeal azazeal requested a review from Copilot May 5, 2026 18:56
@azazeal azazeal disabled auto-merge May 5, 2026 18:56
@azazeal azazeal merged commit 0fb8ab4 into main May 5, 2026
9 checks passed
@azazeal azazeal deleted the panos/codeql-runs-on branch May 5, 2026 18:58
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 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-on workflow input (default ubuntu-latest) to relevant reusable workflows.
  • Wire the new input through wrapper workflows (goCI.yml, code-scan.yml) into the underlying codeql-analysis.yml.
  • Update codeql-analysis.yml to use the input to drive the job’s runs-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.

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.

3 participants