Skip to content

Replace Onyx CI workflows with self-contained scans before going public - #2

Merged
rodlaf merged 2 commits into
mainfrom
sec/public-repo-workflows
Nov 20, 2026
Merged

rodlaf merged 2 commits into
mainfrom
sec/public-repo-workflows

Conversation

@prathamesh16c

@prathamesh16c prathamesh16c commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Prepares the repo for the visibility change requested in SECAT-3182.

Why

  • trufflehog-bypass.yml (issue_comment) and opengrep-fp.yml (pull_request_review_comment, secrets: inherit) call handlers in scaleapi/required-actions that don't check the commenter's permission. Once the repo is public, any GitHub user could bypass the secret scan or mark OpenGrep findings as false positives (pre-OSS review SEC-001).
  • All the Onyx workflows call reusable workflows in the private scaleapi/required-actions repo, which a public repo likely can't use, so they'd fail on every PR (SEC-002).

What

  • Removes the five Onyx workflows and the empty .circleci/config.yml (SEC-005).
  • Adds the self-contained workflows already running on the public scaleapi/RSI-Control, copied verbatim: TruffleHog on PRs, a weekly full-history TruffleHog scan, and CodeQL (Python + Actions). All actions are SHA-pinned, with contents: read and no secrets.
  • Adds .github/dependabot.yml for pip and GitHub Actions.

After merge and the visibility flip

  • Turn on secret scanning and push protection under Settings → Code security.
  • Confirm the next PR shows TruffleHog Secret Scan and CodeQL green.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge, with no outstanding findings.

Summary

Replaces private Onyx workflows with self-contained security scans before the repository becomes public.

  • Pull requests now run TruffleHog against their commits.
  • CodeQL scans Python and GitHub Actions on pushes and pull requests.
  • A weekly TruffleHog scan checks the repository's full history.
  • Pull requests no longer start the OpenGrep scan.
  • Review comments no longer start OpenGrep false-positive triage.
  • Pull-request comments no longer start the TruffleHog bypass handler.
  • Dependabot checks Python packages and GitHub Actions each week.

Reviews (2) · Last reviewed commit: "Re-trigger TruffleHog" · Reviewed by Greptile

prathamesh16c and others added 2 commits November 20, 2026 13:30
The Onyx workflows call reusable workflows in the private
scaleapi/required-actions repo, which a public repo likely cannot use,
and the two comment-triggered handlers (trufflehog-bypass, opengrep-fp)
do not check the commenter's permission, so any GitHub user could
trigger them once the repo is public (SEC-001, SEC-002).

Swap them for the SHA-pinned, read-only TruffleHog and CodeQL workflows
used by scaleapi/RSI-Control, add Dependabot for pip and GitHub Actions,
and remove the empty CircleCI config (SEC-005).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@rodlaf
rodlaf merged commit f8da542 into main Nov 20, 2026
6 checks passed
@rodlaf
rodlaf deleted the sec/public-repo-workflows branch November 20, 2026 21:57
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