Skip to content

ci: run quality-gate checks on Cursor Origin Codebase - #223

Draft
nikomatt69 wants to merge 2 commits into
live-mainfrom
cursor/origin-codebase-ci-c066
Draft

ci: run quality-gate checks on Cursor Origin Codebase#223
nikomatt69 wants to merge 2 commits into
live-mainfrom
cursor/origin-codebase-ci-c066

Conversation

@nikomatt69

@nikomatt69 nikomatt69 commented Aug 17, 2026

Copy link
Copy Markdown
Owner

Issue for this PR

N/A — Origin-hosted CI for Cursor Codebase.

Type of change

  • New feature

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:

  • Adds Depot quality-gate workflows under .depot/ (validate, typecheck, test, generate, nix-eval, storybook, security)
  • Lets autofix / report / review / /autofix run on nikoemme/nikcli as well as nikomatt69/nikcli
  • Updates script/ci-autofix.ts so Origin is not treated as the wrong repository
  • Keeps publish, desktop, Railway, and Windows jobs GitHub-only

After merge, to actually run CI on cursor.com/codebase:

  1. Repo Settings → Detach from GitHub (Danger Zone), so Origin becomes the source of truth
  2. Codebase Apps → connect Depot

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

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

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>
@github-actions github-actions Bot added size/XL PR touches 903 lines area/ci area/docs labels Aug 17, 2026
@github-actions

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

.github/workflows/security.yml

PackageVersionLicenseIssue Type
actions/checkout7.*.*NullUnknown License
Allowed Licenses: MIT, Apache-2.0, ISC, BSD-2-Clause, BSD-3-Clause, CC0-1.0, Unlicense, 0BSD

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 7.*.* 🟢 7
Details
CheckScoreReason
Maintained🟢 1024 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Code-Review🟢 10all changesets reviewed
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Fuzzing⚠️ 0project is not fuzzed
Packaging⚠️ -1packaging workflow not detected
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Security-Policy🟢 9security policy file detected
SAST🟢 10SAST tool is run on all commits
Branch-Protection🟢 6branch protection is not maximal on development and all release branches

Scanned Files

  • .github/workflows/security.yml

The workflow already started autofix for nikoemme/nikcli, but the script
hard-skipped any repository other than nikomatt69/nikcli.
Comment thread .depot/workflows/test.yml
run: ${{ matrix.settings.playwright }}

- name: Set OS-specific paths
run: |

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants