SIGN IN SIGN UP

fix(cli): check root workflow before recommending CI (#1697)

* fix: check root directory for CI config instead of project count

Multi-project scans were unconditionally recommending GitHub Actions
even when  already existed at the
repository root. The logic checked individual project directories for
the workflow, which would fail in monorepos where the workflow lives
at the root.

Fixed by checking whether CI is configured at the root directory
(where the scan is running) instead of:
1. Unconditionally for multi-project scans (projectScans.length > 1)
2. Per-project directory checks that miss root-level workflows

Closes #1696

Co-authored-by: Skosh <skoshx@users.noreply.github.com>

* chore: add changeset for CI recommendation fix

Co-authored-by: Skosh <skoshx@users.noreply.github.com>

* chore: format code

Co-authored-by: Skosh <skoshx@users.noreply.github.com>

* fix(cli): measure CI recommendations

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Skosh <skoshx@users.noreply.github.com>
Co-authored-by: Aiden Bai <aiden@million.dev>
S
Skosh committed
0557145cf3d10ab0a6359babb1604208c1e65863
Parent: 17eeeb5
Committed by GitHub <noreply@github.com> on 8/30/2026, 5:21:32 AM