Skip to content

ci: choose shared scan runners by caller visibility - #6

Merged
altaywtf merged 1 commit into
mainfrom
ci/visibility-based-runners
Sep 5, 2026
Merged

ci: choose shared scan runners by caller visibility#6
altaywtf merged 1 commit into
mainfrom
ci/visibility-based-runners

Conversation

@altaywtf

@altaywtf altaywtf commented Sep 5, 2026

Copy link
Copy Markdown
Member

Problem

The shared scan currently sends public repositories to Blacksmith. Public repositories should use GitHub-hosted runners, while private repositories may retain Blacksmith.

Solution

Choose the runner from the calling repository’s visibility. Public callers use standard Ubuntu 24.04; private callers keep the existing Blacksmith runner. Scan jobs and their permissions, triggers, and pinned tools remain the same.

Copilot AI lite review requested due to automatic review settings September 5, 2026 16:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-05T16:40:29.027961Z a657983 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The runner-selection change is consistent with the stated goal and is applied uniformly across all scan jobs without altering permissions, triggers, or tool pins.

Pull request overview

This PR updates the shared reusable scan workflow to select runners based on the calling repository’s visibility, ensuring public repositories use GitHub-hosted runners while private repositories continue using the existing Blacksmith runner.

Changes:

  • Documented runner selection behavior in the repository README.
  • Updated all scan jobs to dynamically choose runs-on based on github.event.repository.private for the calling repo.
File summaries
File Description
README.md Documents the public-vs-private runner selection behavior for the shared scan.
.github/workflows/scan.yml Switches each scan job’s runner to GitHub-hosted for public callers and Blacksmith for private callers using a conditional runs-on expression.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@slopzapper slopzapper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✨ CLEAN

Runner selection matches the caller github context and the documented public-versus-private split. No defects in the eligible files.

@altaywtf
altaywtf merged commit 19763da into main Sep 5, 2026
5 checks passed
@altaywtf
altaywtf deleted the ci/visibility-based-runners branch September 5, 2026 16:42
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.

2 participants