Skip to content

Surface --repo-id as the primary dispatch path (mark --project legacy)#10

Open
joshkotrous wants to merge 2 commits into
mainfrom
cursor/cli-repo-id-docs-alignment-7f07
Open

Surface --repo-id as the primary dispatch path (mark --project legacy)#10
joshkotrous wants to merge 2 commits into
mainfrom
cursor/cli-repo-id-docs-alignment-7f07

Conversation

@joshkotrous

Copy link
Copy Markdown
Contributor

Summary

Companion to the console change that restores per-repo scoping for CI-triggered pentests (pensarai/console#1773). The CLI was already functionally compatible — it sends repoId (auto-detected from GITHUB_REPOSITORY_ID) and reads issueCountsBySeverity — but its help text, error messages, and README only documented the deprecated --project path. The console now uses repoId to scope a pentest to a single repository's applications, so the CLI's guidance should lead with --repo-id.

Changes (non-breaking)

  • src/bin/index.ts — list --repo-id first and describe it as the per-repo scoping path; relabel --project as legacy and point users to --repo-id.
  • src/lib/ci.ts — reword the two "no identifier" errors to lead with repoId/GITHUB_REPOSITORY_ID; projectId is still accepted.
  • README.md — document --repo-id / GITHUB_REPOSITORY_ID; mark --project / PENSAR_PROJECT_ID legacy.

No request-body or runtime behavior change: dispatchScan still serializes projectId or repoId exactly as before, so existing pipelines (including any pointed at production) keep working. projectId remains accepted because the project concept is only deprecated on the newer console, not removed across all environments.

Test Plan

  • npm run build (tsc) passes.
  • Verified no behavior change to the dispatch request body — only help text, error wording, and docs were touched.
  • After console #1773 ships to a stage: run pensar pentest --repo-id <id> -e staging and confirm the scan is scoped to that repo's applications.
Open in Web Open in Cursor 

cursoragent and others added 2 commits June 12, 2026 19:55
…ject legacy

The CLI already sends repoId (auto-detected from GITHUB_REPOSITORY_ID) and the
console now uses it to scope a pentest to one repository's applications. Update
the --repo-id/--project help text and the dispatch error messages to lead with
repo-id and flag projectId as the legacy workspace-wide path. No behavior change
to the request body (still accepts either).

Co-authored-by: josh <josh@pensarai.com>
…legacy

Co-authored-by: josh <josh@pensarai.com>
@joshkotrous joshkotrous marked this pull request as ready for review June 16, 2026 15: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