ci: run quality-gate checks on Cursor Origin Codebase - #223
Conversation
Origin-hosted repos do not execute GitHub Actions. Add Depot CI copies of the quality-gate workflows under .depot/ and allow autofix/report/review on nikoemme/nikcli so checks run from cursor.com/codebase. Publish, desktop, Railway, and Windows jobs stay GitHub-only. Co-authored-by: nicola.mattioli.95 <nicola.mattioli.95@gmail.com>
Dependency ReviewThe following issues were found:
License Issues.github/workflows/security.yml
OpenSSF Scorecard
Scanned Files
|
The workflow already started autofix for nikoemme/nikcli, but the script hard-skipped any repository other than nikomatt69/nikcli.
| run: ${{ matrix.settings.playwright }} | ||
|
|
||
| - name: Set OS-specific paths | ||
| run: | |
There was a problem hiding this comment.
This Depot test workflow is Linux-only (the matrix has a single linux entry and runs on depot-ubuntu-24.04-8), but the Set OS-specific paths step still carries the full Windows branch copied from .github/workflows/test.yml (backslashes, ${{ runner.temp }}\\nikcli-e2e, etc.). That branch is dead code on Depot runners and adds ~35 lines of noise. Since the goal stated in the PR is to keep Depot Linux-only, this whole if/else can collapse to just the else branch. Suggestion: remove lines 42-58 (the Windows if block) and unindent the Linux branch to sit directly under run: |. Only an actual suggestion — feel free to leave it as-is if you intentionally want byte-for-byte parity with the GitHub copy for diffability.
Review — ci: run quality-gate checks on Cursor Origin CodebaseReviewed at head This PR has gone stale, and one finding follows from that.
runs-on: ${{ matrix.settings.host }}
if: matrix.settings.name != 'windows' || github.repository == 'nikomatt69/nikcli'Two problems:
Worth rebasing on (Aside, since it's the same root cause: that documented Three smaller things:
CI. Generated by Claude Code |
Closing — stale, and blocked on a step outside the diffStill a draft at
Beyond the diff, the thing this PR is for cannot happen from a merge. Closing rather than leaving it open: the merge order here is backwards. Detach first, then port the pipeline against whatever If it is picked back up, the earlier review's three smaller notes still apply and are cheaper to fix before the copy exists than after:
The work is not wrong, and Generated by Claude Code |
Issue for this PR
N/A — Origin-hosted CI for Cursor Codebase.
Type of change
What does this PR do?
This repo is currently a GitHub inbound mirror, so GitHub Actions stay the runner and Origin PRs are unavailable until the repo is detached.
Cursor Codebase CI (Depot/Buildkite) only runs on Origin-hosted repos. This change:
.depot/(validate, typecheck, test, generate, nix-eval, storybook, security)/autofixrun onnikoemme/nikclias well asnikomatt69/nikcliscript/ci-autofix.tsso Origin is not treated as the wrong repositoryAfter merge, to actually run CI on cursor.com/codebase:
How did you verify your code works?
bun test test/release/ci-coherence.test.ts test/release/ci-integration.test.ts test/release/ci-targeted.test.ts test/release/automation.test.ts— all passing.Checklist