-
Notifications
You must be signed in to change notification settings - Fork 0
feat(workflows): add optional per-job runner_type overrides #636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
d4ab4d6
51e9519
c0214b5
5513648
b1f9add
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,13 @@ The `go-analysis`, `security` and `lib-version` pipelines each have a `*-gate` a | |
| | Input | Description | Type | Default | | ||
| |-------|-------------|------|---------| | ||
| | `runner_type` | GitHub runner type | string | `blacksmith-4vcpu-ubuntu-2404` | | ||
| | `gate_runner_type` | Optional runner override for the umbrella utility jobs only (Detect non-doc changes + Go Analysis / Security / Lib Version result gates); empty falls back to `vars.GENERAL_RUNNERS`, then `runner_type` | string | `''` | | ||
| | `lint_runner_type` | Optional runner override for the Go analysis Lint jobs only | string | `''` | | ||
| | `test_runner_type` | Optional runner override for the Go analysis Tests jobs only | string | `''` | | ||
| | `coverage_runner_type` | Optional runner override for the Go analysis Coverage jobs only | string | `''` | | ||
| | `build_runner_type` | Optional runner override for the Go analysis Build jobs only | string | `''` | | ||
| | `security_scan_runner_type` | Optional runner override for the security_scan jobs only | string | `''` | | ||
| | `pr_checks_summary_runner_type` | Optional runner override for the PR Checks Summary job only | string | `''` | | ||
|
Comment on lines
+26
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Keep runner input tables synchronized with the fallback contract. The new runner inputs use the same empty-value resolution:
As per path instructions, keep the inputs table synchronized with the corresponding workflow changes in this PR. 📍 Affects 2 files
🤖 Prompt for AI AgentsSource: Path instructions |
||
| | `dry_run` | Preview metadata validations without posting comments/labels | boolean | `false` | | ||
| | `run_go_analysis` | Run the Go analysis pipeline | boolean | `true` | | ||
| | `run_security` | Run the security scan pipeline | boolean | `true` | | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: LerianStudio/github-actions-shared-workflows
Length of output: 50401
🏁 Script executed:
Repository: LerianStudio/github-actions-shared-workflows
Length of output: 19991
🏁 Script executed:
Repository: LerianStudio/github-actions-shared-workflows
Length of output: 50403
🏁 Script executed:
Repository: LerianStudio/github-actions-shared-workflows
Length of output: 50403
Block pull-request execution of this build job.
build.ymlis callable by external repositories, has no event guard, and accepts unrestrictedcheckout_refandbuild_runner_typeinputs. Apull_requestcaller can therefore run fork-controlled Docker build code on a caller-selected runner, including a self-hosted runner. Reject pull-request events or restrict this workflow to trusted release callers and approved runners.🤖 Prompt for AI Agents